fix(source): return all KinoGer domains, fixes VOE results
This commit is contained in:
parent
50c5d3a1cd
commit
cf0be4712e
7 changed files with 31 additions and 1703 deletions
|
|
@ -36,11 +36,6 @@ describe('KinoGer', () => {
|
|||
expect(streams).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('handle no fsst via brokeback mountain', async () => {
|
||||
const streams = await source.handle(ctx, 'series', new ImdbId('tt0388795', undefined, undefined));
|
||||
expect(streams).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('handle imdb blood and sinners', async () => {
|
||||
const streams = await source.handle(ctx, 'series', new ImdbId('tt31193180', undefined, undefined));
|
||||
expect(streams).toMatchSnapshot();
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export class KinoGer extends Source {
|
|||
|
||||
return Array.from(html.matchAll(/\.show\(.*/g))
|
||||
.map(showJsMatch => this.findEpisodeUrlInShowJs(showJsMatch[0], seasonIndex, episodeIndex))
|
||||
.filter((url): url is URL => url !== undefined && !['kinoger.be', 'kinoger.ru'].includes(url.host))
|
||||
.filter((url): url is URL => url !== undefined)
|
||||
.map(url => ({ url, meta: { countryCodes: [CountryCode.de], referer: pageUrl.href, title } }));
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
{"movie_results":[{"backdrop_path":"/vXzqV2RtJlT9WhNEM4NYWCEC6ZI.jpg","id":142,"title":"Brokeback Mountain","original_title":"Brokeback Mountain","overview":"In 1960s Wyoming, two men develop a strong emotional and sexual relationship that endures as a lifelong connection complicating their lives as they get married and start families of their own.","poster_path":"/aByfQOQBNa4CMFwIgq3QrqY2ZHh.jpg","media_type":"movie","adult":false,"original_language":"en","genre_ids":[18,10749],"popularity":8.858,"release_date":"2005-10-22","video":false,"vote_average":7.8,"vote_count":7170}],"person_results":[],"tv_results":[],"tv_episode_results":[],"tv_season_results":[]}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"adult":false,"backdrop_path":"/vXzqV2RtJlT9WhNEM4NYWCEC6ZI.jpg","belongs_to_collection":null,"budget":14000000,"genres":[{"id":18,"name":"Drama"},{"id":10749,"name":"Liebesfilm"}],"homepage":"","id":142,"imdb_id":"tt0388795","origin_country":["US"],"original_language":"en","original_title":"Brokeback Mountain","overview":"Im Jahre 1963 treffen sie sich das erste Mal: die beiden Cowboys Ennis del Mar und Jack Twist. Auf einer Farm in Wyoming werden sie gemeinsam für den Besitzer dessen Schafe hüten. Einen Sommer lang, Tag für Tag, werden sie zusammen auf die Herde aufpassen und sich besser kennen lernen. Bald jedoch bemerken sie, dass sie mehr als die Tiere verbindet, denn sie verlieben sich ineinander. Doch ebenso schnell realisieren sie, dass ihre Liebe von niemandem akzeptiert würde und sie diese unter Verschluss halten müssten. Am Ende des Sommers werden alle Gedanken zerschlagen, da sich ihre Wege wieder trennen und sie versuchen müssen, ein Leben ohne den anderen zu führen. Beide heiraten, Jack die lebenslustige Lureen und Ennis Alma, woraufhin alles vergessen scheint. Erst Jahre später, immer noch nicht voneinander losgekommen, sehen sie sich wieder...","popularity":8.858,"poster_path":"/aByfQOQBNa4CMFwIgq3QrqY2ZHh.jpg","production_companies":[{"id":10146,"logo_path":"/xnFIOeq5cKw09kCWqV7foWDe4AA.png","name":"Focus Features","origin_country":"US"},{"id":1246,"logo_path":"/s0doRYEVWp3a4Y4Cg7R4fE9cwov.png","name":"River Road Entertainment","origin_country":"US"},{"id":3997,"logo_path":null,"name":"Alberta Film Entertainment","origin_country":"CA"}],"production_countries":[{"iso_3166_1":"CA","name":"Canada"},{"iso_3166_1":"US","name":"United States of America"}],"release_date":"2005-10-22","revenue":178043761,"runtime":129,"spoken_languages":[{"english_name":"English","iso_639_1":"en","name":"English"}],"status":"Released","tagline":"","title":"Brokeback Mountain","video":false,"vote_average":7.8,"vote_count":7170}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -2,6 +2,16 @@
|
|||
|
||||
exports[`KinoGer handle imdb blood and sinners 1`] = `
|
||||
[
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
"de",
|
||||
],
|
||||
"referer": "https://kinoger.com/stream/18809-blood-sinners-stream.html",
|
||||
"title": "Blood & Sinners (2025)",
|
||||
},
|
||||
"url": "https://kinoger.ru/v/BkUY21dAvzyq/",
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
|
|
@ -37,6 +47,16 @@ exports[`KinoGer handle imdb blood and sinners 1`] = `
|
|||
|
||||
exports[`KinoGer handle imdb dead city s2e5 1`] = `
|
||||
[
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
"de",
|
||||
],
|
||||
"referer": "https://kinoger.com/stream/12971-the-walking-dead-dead-city-stream.html",
|
||||
"title": "The Walking Dead: Dead City 2x5",
|
||||
},
|
||||
"url": "https://kinoger.ru/v/j1Odr1xqKEWS/",
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
|
|
@ -62,6 +82,16 @@ exports[`KinoGer handle imdb dead city s2e5 1`] = `
|
|||
|
||||
exports[`KinoGer handle imdb dead city s2e6 1`] = `
|
||||
[
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
"de",
|
||||
],
|
||||
"referer": "https://kinoger.com/stream/12971-the-walking-dead-dead-city-stream.html",
|
||||
"title": "The Walking Dead: Dead City 2x6",
|
||||
},
|
||||
"url": "https://kinoger.ru/v/15U2exVIfyEq/",
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
|
|
@ -86,18 +116,3 @@ exports[`KinoGer handle imdb dead city s2e6 1`] = `
|
|||
`;
|
||||
|
||||
exports[`KinoGer handle missing episode imdb black mirror s3e4 1`] = `[]`;
|
||||
|
||||
exports[`KinoGer handle no fsst via brokeback mountain 1`] = `
|
||||
[
|
||||
{
|
||||
"meta": {
|
||||
"countryCodes": [
|
||||
"de",
|
||||
],
|
||||
"referer": "https://kinoger.com/stream/14781-brokeback-mountain-stream.html",
|
||||
"title": "Brokeback Mountain (2005)",
|
||||
},
|
||||
"url": "https://dooodster.com/e/1cfcevn6dg8shrfvht22odxw2lty18hr",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue