From b11bba761a34274ddd50b7f8c60b8a9563ed3da1 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Thu, 10 Jul 2025 10:34:12 +0000 Subject: [PATCH] fix(extractor): ignore processing SuperVideo files --- src/extractor/SuperVideo.test.ts | 4 + src/extractor/SuperVideo.ts | 2 +- .../https:supervideo.cc3h1qqoqtldo8 | 381 ++++++++++++++++++ .../__snapshots__/SuperVideo.test.ts.snap | 2 + 4 files changed, 388 insertions(+), 1 deletion(-) create mode 100644 src/extractor/__fixtures__/SuperVideo/https:supervideo.cc3h1qqoqtldo8 diff --git a/src/extractor/SuperVideo.test.ts b/src/extractor/SuperVideo.test.ts index cafd877..6a0326c 100644 --- a/src/extractor/SuperVideo.test.ts +++ b/src/extractor/SuperVideo.test.ts @@ -26,4 +26,8 @@ describe('SuperVideo', () => { test('deleted or expired file', async () => { expect(await extractorRegistry.handle(ctx, new URL('https://supervideo.cc/ndf5shmy9lpt'), CountryCode.it)).toMatchSnapshot(); }); + + test('processing video', async () => { + expect(await extractorRegistry.handle(ctx, new URL('https://supervideo.cc/3h1qqoqtldo8'), CountryCode.it)).toMatchSnapshot(); + }); }); diff --git a/src/extractor/SuperVideo.ts b/src/extractor/SuperVideo.ts index 1d6b3d4..0856d70 100644 --- a/src/extractor/SuperVideo.ts +++ b/src/extractor/SuperVideo.ts @@ -33,7 +33,7 @@ export class SuperVideo extends Extractor { return await this.extractInternal(ctx, new URL(`/e${url.pathname}`, url.origin), countryCode); } - if (/'The file was deleted|The file expired/.test(html)) { + if (/'The file was deleted|The file expired|Video is processing/.test(html)) { throw new NotFoundError(); } diff --git a/src/extractor/__fixtures__/SuperVideo/https:supervideo.cc3h1qqoqtldo8 b/src/extractor/__fixtures__/SuperVideo/https:supervideo.cc3h1qqoqtldo8 new file mode 100644 index 0000000..be41446 --- /dev/null +++ b/src/extractor/__fixtures__/SuperVideo/https:supervideo.cc3h1qqoqtldo8 @@ -0,0 +1,381 @@ + + +
+ +