chore(source): remove VidSrc which does not add value atm

This commit is contained in:
WebStreamr 2025-12-11 15:47:38 +00:00
parent 580845ae77
commit 1bd85fb4ad
No known key found for this signature in database
5 changed files with 3 additions and 85 deletions

View file

@ -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();
});
});

View file

@ -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<SourceResult[]> {
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] } }];
};
}

View file

@ -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",
},
]
`;

View file

@ -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),

View file

@ -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",