diff --git a/src/embed-extractor/Dropload.ts b/src/embed-extractor/Dropload.ts index ff90144..bdb691e 100644 --- a/src/embed-extractor/Dropload.ts +++ b/src/embed-extractor/Dropload.ts @@ -29,7 +29,7 @@ export class Dropload implements EmbedExtractor { return { url: extractUrlFromPacked(html, [/sources:\[{file:"(.*?)"/]), label: this.label, - sourceId: this.id, + sourceId: `${this.id}_${countryCode.toLowerCase()}`, height: parseInt(heightMatch[1] as string) as number, bytes: bytes.parse(sizeMatch[1] as string) as number, countryCode, diff --git a/src/embed-extractor/SuperVideo.ts b/src/embed-extractor/SuperVideo.ts index fdc26c3..9a58a5c 100644 --- a/src/embed-extractor/SuperVideo.ts +++ b/src/embed-extractor/SuperVideo.ts @@ -27,7 +27,7 @@ export class SuperVideo implements EmbedExtractor { return { url: extractUrlFromPacked(html, [/sources:\[{file:"(.*?)"/]), label: this.label, - sourceId: this.id, + sourceId: `${this.id}_${countryCode.toLowerCase()}`, height: parseInt(heightAndSizeMatch[1] as string) as number, bytes: bytes.parse(heightAndSizeMatch[2] as string) as number, countryCode, diff --git a/src/handler/FrenchCloud.test.ts b/src/handler/FrenchCloud.test.ts index 0d9aa5e..3f7754d 100644 --- a/src/handler/FrenchCloud.test.ts +++ b/src/handler/FrenchCloud.test.ts @@ -29,7 +29,7 @@ describe('FrenchCloud', () => { expect(streams[0]).toStrictEqual({ url: expect.any(URL), label: 'SuperVideo', - sourceId: 'supervideo', + sourceId: 'supervideo_fr', height: 720, bytes: 966682214, countryCode: 'fr', @@ -38,7 +38,7 @@ describe('FrenchCloud', () => { expect(streams[1]).toStrictEqual({ url: expect.any(URL), label: 'Dropload', - sourceId: 'dropload', + sourceId: 'dropload_fr', height: 720, bytes: 966682214, countryCode: 'fr', diff --git a/src/handler/KinoKiste.test.ts b/src/handler/KinoKiste.test.ts index aa4ddb7..ae9bd97 100644 --- a/src/handler/KinoKiste.test.ts +++ b/src/handler/KinoKiste.test.ts @@ -29,7 +29,7 @@ describe('KinoKiste', () => { expect(streams[0]).toStrictEqual({ url: expect.any(URL), label: 'SuperVideo', - sourceId: 'supervideo', + sourceId: 'supervideo_de', height: 720, bytes: 733793484, countryCode: 'de', @@ -38,7 +38,7 @@ describe('KinoKiste', () => { expect(streams[1]).toStrictEqual({ url: expect.any(URL), label: 'Dropload', - sourceId: 'dropload', + sourceId: 'dropload_de', height: 720, bytes: 733793484, countryCode: 'de', diff --git a/src/handler/MeineCloud.test.ts b/src/handler/MeineCloud.test.ts index 264425d..2864dce 100644 --- a/src/handler/MeineCloud.test.ts +++ b/src/handler/MeineCloud.test.ts @@ -29,7 +29,7 @@ describe('MeineCloud', () => { expect(streams[0]).toStrictEqual({ url: expect.any(URL), label: 'SuperVideo', - sourceId: 'supervideo', + sourceId: 'supervideo_de', height: 720, bytes: 1073741824, countryCode: 'de', @@ -38,7 +38,7 @@ describe('MeineCloud', () => { expect(streams[1]).toStrictEqual({ url: expect.any(URL), label: 'Dropload', - sourceId: 'dropload', + sourceId: 'dropload_de', height: 1080, bytes: 1395864371, countryCode: 'de', diff --git a/src/handler/MostraGuarda.test.ts b/src/handler/MostraGuarda.test.ts index 50e5500..f95514e 100644 --- a/src/handler/MostraGuarda.test.ts +++ b/src/handler/MostraGuarda.test.ts @@ -29,7 +29,7 @@ describe('MostraGuarda', () => { expect(streams[0]).toStrictEqual({ url: expect.any(URL), label: 'SuperVideo', - sourceId: 'supervideo', + sourceId: 'supervideo_it', height: 720, bytes: 1181116006, countryCode: 'it', @@ -38,7 +38,7 @@ describe('MostraGuarda', () => { expect(streams[1]).toStrictEqual({ url: expect.any(URL), label: 'Dropload', - sourceId: 'dropload', + sourceId: 'dropload_it', height: 720, bytes: 1181116006, countryCode: 'it',