From 1bd85fb4ad038ff979cb372fd0c8577c54aaf775 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:47:38 +0000 Subject: [PATCH] chore(source): remove VidSrc which does not add value atm --- src/source/VidSrc.test.ts | 23 ---------------- src/source/VidSrc.ts | 24 ----------------- src/source/__snapshots__/VidSrc.test.ts.snap | 27 ------------------- src/source/index.ts | 3 --- src/utils/__snapshots__/manifest.test.ts.snap | 11 +++----- 5 files changed, 3 insertions(+), 85 deletions(-) delete mode 100644 src/source/VidSrc.test.ts delete mode 100644 src/source/VidSrc.ts delete mode 100644 src/source/__snapshots__/VidSrc.test.ts.snap diff --git a/src/source/VidSrc.test.ts b/src/source/VidSrc.test.ts deleted file mode 100644 index a3440c0..0000000 --- a/src/source/VidSrc.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createTestContext } from '../test'; -import { ImdbId } from '../utils'; -import { VidSrc } from './VidSrc'; - -const ctx = createTestContext(); - -describe('VidSrc', () => { - let source: VidSrc; - - beforeEach(() => { - source = new VidSrc(); - }); - - test('handle imdb black mirror s4e2', async () => { - const streams = await source.handle(ctx, 'series', new ImdbId('tt2085059', 4, 2)); - expect(streams).toMatchSnapshot(); - }); - - test('handle imdb full metal jacket', async () => { - const streams = await source.handle(ctx, 'series', new ImdbId('tt0093058', undefined, undefined)); - expect(streams).toMatchSnapshot(); - }); -}); diff --git a/src/source/VidSrc.ts b/src/source/VidSrc.ts deleted file mode 100644 index 774107a..0000000 --- a/src/source/VidSrc.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ContentType } from 'stremio-addon-sdk'; -import { Context, CountryCode } from '../types'; -import { Id } from '../utils'; -import { Source, SourceResult } from './Source'; - -export class VidSrc extends Source { - public readonly id = 'vidsrc'; - - public readonly label = 'VidSrc'; - - public readonly contentTypes: ContentType[] = ['movie', 'series']; - - public readonly countryCodes: CountryCode[] = [CountryCode.multi, CountryCode.en]; - - public readonly baseUrl = 'https://vidsrc-embed.ru'; - - public async handleInternal(_ctx: Context, _type: string, id: Id): Promise { - const url = id.season - ? new URL(`/embed/tv/${id.id}/${id.season}-${id.episode}`, this.baseUrl) - : new URL(`/embed/movie/${id.id}`, this.baseUrl); - - return [{ url, meta: { countryCodes: [CountryCode.multi] } }]; - }; -} diff --git a/src/source/__snapshots__/VidSrc.test.ts.snap b/src/source/__snapshots__/VidSrc.test.ts.snap deleted file mode 100644 index a857d77..0000000 --- a/src/source/__snapshots__/VidSrc.test.ts.snap +++ /dev/null @@ -1,27 +0,0 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing - -exports[`VidSrc handle imdb black mirror s4e2 1`] = ` -[ - { - "meta": { - "countryCodes": [ - "multi", - ], - }, - "url": "https://vidsrc-embed.ru/embed/tv/tt2085059/4-2", - }, -] -`; - -exports[`VidSrc handle imdb full metal jacket 1`] = ` -[ - { - "meta": { - "countryCodes": [ - "multi", - ], - }, - "url": "https://vidsrc-embed.ru/embed/movie/tt0093058", - }, -] -`; diff --git a/src/source/index.ts b/src/source/index.ts index cd142f9..b21b6a3 100644 --- a/src/source/index.ts +++ b/src/source/index.ts @@ -16,7 +16,6 @@ import { Movix } from './Movix'; import { Source } from './Source'; import { StreamKiste } from './StreamKiste'; import { VerHdLink } from './VerHdLink'; -import { VidSrc } from './VidSrc'; import { VixSrc } from './VixSrc'; export * from './Source'; @@ -30,8 +29,6 @@ export const createSources = (fetcher: Fetcher): Source[] => { new VixSrc(fetcher), // AL new Kokoshka(fetcher), - // EN - new VidSrc(), // ES / MX new CineHDPlus(fetcher), new Cuevana(fetcher), diff --git a/src/utils/__snapshots__/manifest.test.ts.snap b/src/utils/__snapshots__/manifest.test.ts.snap index 50c637e..cbb7228 100644 --- a/src/utils/__snapshots__/manifest.test.ts.snap +++ b/src/utils/__snapshots__/manifest.test.ts.snap @@ -11,7 +11,7 @@ exports[`buildManifest default manifest 1`] = ` "config": [ { "key": "multi", - "title": "Multi 🌐 (4KHDHub, VidSrc, VixSrc)", + "title": "Multi 🌐 (4KHDHub, VixSrc)", "type": "checkbox", }, { @@ -24,11 +24,6 @@ exports[`buildManifest default manifest 1`] = ` "title": "German πŸ‡©πŸ‡ͺ (Einschalten, KinoGer, MegaKino, MeineCloud, StreamKiste)", "type": "checkbox", }, - { - "key": "en", - "title": "English πŸ‡ΊπŸ‡Έ (VidSrc)", - "type": "checkbox", - }, { "key": "es", "title": "Castilian Spanish πŸ‡ͺπŸ‡Έ (CineHDPlus, Cuevana, HomeCine, VerHdLink)", @@ -79,9 +74,9 @@ exports[`buildManifest default manifest 1`] = ` ], "description": "Provides HTTP URLs from streaming websites. Configure add-on for additional languages. Add MediaFlow proxy for more URLs. -Supported languages: Albanian, German, English, Castilian Spanish, French, Hindi, Italian, Latin American Spanish +Supported languages: Albanian, German, Castilian Spanish, French, Hindi, Italian, Latin American Spanish -Supported sources: 4KHDHub, VixSrc, Kokoshka, VidSrc, CineHDPlus, Cuevana, HomeCine, VerHdLink, Einschalten, KinoGer, MegaKino, MeineCloud, StreamKiste, Frembed, FrenchCloud, Movix, Eurostreaming, MostraGuarda +Supported sources: 4KHDHub, VixSrc, Kokoshka, CineHDPlus, Cuevana, HomeCine, VerHdLink, Einschalten, KinoGer, MegaKino, MeineCloud, StreamKiste, Frembed, FrenchCloud, Movix, Eurostreaming, MostraGuarda Supported extractors: ", "id": "webstreamr",