From 331e5bd5d16ddaac18fdc7e6cc2e4f2ee8c0051c Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Wed, 29 Oct 2025 13:30:15 +0000 Subject: [PATCH] fix(source): add fallback search for english title to Kokoshka --- src/source/Kokoshka.test.ts | 5 ++++ src/source/Kokoshka.ts | 11 +++++--- ...:api.themoviedb.org3movie1156594languageen | 1 + ...:api.themoviedb.org3movie1156594languagesq | 1 + ...:api.themoviedb.org3movie1242404languageen | 1 + ...ttps:api.themoviedb.org3tv287877languageen | 1 + ....digitalfilmaour-fault-2025-me-titra-shqip | 12 +++++++++ ...digitalsCulpapercent20nuestrapercent202025 | 7 ++++++ ...hka.digitalsOurpercent20Faultpercent202025 | 7 ++++++ ...shka.digitalwp-jsondooplayerv2161211movie1 | 1 + ...shka.digitalwp-jsondooplayerv2161211movie2 | 1 + .../__snapshots__/Kokoshka.test.ts.snap | 25 +++++++++++++++++++ 12 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languageen create mode 100644 src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languagesq create mode 100644 src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1242404languageen create mode 100644 src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3tv287877languageen create mode 100644 src/source/__fixtures__/Kokoshka/https:kokoshka.digitalfilmaour-fault-2025-me-titra-shqip create mode 100644 src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsCulpapercent20nuestrapercent202025 create mode 100644 src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsOurpercent20Faultpercent202025 create mode 100644 src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie1 create mode 100644 src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie2 diff --git a/src/source/Kokoshka.test.ts b/src/source/Kokoshka.test.ts index 1ef0723..926eec2 100644 --- a/src/source/Kokoshka.test.ts +++ b/src/source/Kokoshka.test.ts @@ -40,4 +40,9 @@ describe('Kokoshka', () => { const streams = await source.handle(ctx, 'movie', new TmdbId(1242404, undefined, undefined)); expect(streams).toMatchSnapshot(); }); + + test('handle our fault 2025', async () => { + const streams = await source.handle(ctx, 'movie', new TmdbId(1156594, undefined, undefined)); + expect(streams).toMatchSnapshot(); + }); }); diff --git a/src/source/Kokoshka.ts b/src/source/Kokoshka.ts index 6ab482e..775680d 100644 --- a/src/source/Kokoshka.ts +++ b/src/source/Kokoshka.ts @@ -32,9 +32,12 @@ export class Kokoshka extends Source { public async handleInternal(ctx: Context, _type: string, id: Id): Promise { const tmdbId = await getTmdbId(ctx, this.fetcher, id); - let pageUrl = await this.fetchPageUrl(ctx, tmdbId); + let pageUrl = await this.fetchPageUrl(ctx, tmdbId, 'sq'); if (!pageUrl) { - return []; + pageUrl = await this.fetchPageUrl(ctx, tmdbId, 'en'); + if (!pageUrl) { + return []; + } } if (tmdbId.season) { @@ -73,8 +76,8 @@ export class Kokoshka extends Source { ); } - private readonly fetchPageUrl = async (ctx: Context, tmdbId: TmdbId): Promise => { - const [name, year] = await getTmdbNameAndYear(ctx, this.fetcher, tmdbId, 'sq'); + private readonly fetchPageUrl = async (ctx: Context, tmdbId: TmdbId, language: string): Promise => { + const [name, year] = await getTmdbNameAndYear(ctx, this.fetcher, tmdbId, language); const searchUrl = new URL(`/?s=${encodeURIComponent(`${name.replace(':', '')} ${year}`)}`, this.baseUrl); const html = await this.fetcher.text(ctx, searchUrl); diff --git a/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languageen b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languageen new file mode 100644 index 0000000..c923a02 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languageen @@ -0,0 +1 @@ +{"adult":false,"backdrop_path":"/7QirCB1o80NEFpQGlQRZerZbQEp.jpg","belongs_to_collection":{"id":1156666,"name":"Fault Collection","poster_path":"/fR3AsfNeAmgGCy2CMFaOjIaIuA7.jpg","backdrop_path":"/7N9p8D39MXJDfm14zlBwW7mBh7g.jpg"},"budget":0,"genres":[{"id":10749,"name":"Romance"},{"id":18,"name":"Drama"}],"homepage":"https://www.amazon.com/gp/video/detail/B0DZF95RTJ","id":1156594,"imdb_id":"tt33311244","origin_country":["ES","US"],"original_language":"es","original_title":"Culpa nuestra","overview":"Jenna and Lion's wedding brings about the long-awaited reunion between Noah and Nick after their breakup. Nick's inability to forgive Noah stands as an insurmountable barrier. He, heir to his grandfather's businesses, and she, starting her professional life, resist fueling a flame that's still alive. But now that their paths have crossed again, will love be stronger than resentment?","popularity":323.8289,"poster_path":"/yzqHt4m1SeY9FbPrfZ0C2Hi9x1s.jpg","production_companies":[{"id":32485,"logo_path":"/fVXreZkiJTOq1cCi6htSQlPSy7R.png","name":"Pokeepsie Films","origin_country":"ES"},{"id":210099,"logo_path":"/d6HwljzlOzxJ4tXlrpRkNZaZMWL.png","name":"Amazon MGM Studios","origin_country":"US"}],"production_countries":[{"iso_3166_1":"ES","name":"Spain"},{"iso_3166_1":"US","name":"United States of America"}],"release_date":"2025-10-15","revenue":0,"runtime":112,"spoken_languages":[{"english_name":"Spanish","iso_639_1":"es","name":"Español"}],"status":"Released","tagline":"","title":"Our Fault","video":false,"vote_average":7.617,"vote_count":428} \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languagesq b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languagesq new file mode 100644 index 0000000..0c6c5ad --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1156594languagesq @@ -0,0 +1 @@ +{"adult":false,"backdrop_path":"/7QirCB1o80NEFpQGlQRZerZbQEp.jpg","belongs_to_collection":{"id":1156666,"name":"Culpables - Colección","poster_path":"/fR3AsfNeAmgGCy2CMFaOjIaIuA7.jpg","backdrop_path":"/7N9p8D39MXJDfm14zlBwW7mBh7g.jpg"},"budget":0,"genres":[{"id":10749,"name":"Romance"},{"id":18,"name":"Drama"}],"homepage":"","id":1156594,"imdb_id":"tt33311244","origin_country":["ES","US"],"original_language":"es","original_title":"Culpa nuestra","overview":"","popularity":323.8289,"poster_path":"/6kmi6vmp6iOn4KzI7WfnVtAeJhU.jpg","production_companies":[{"id":32485,"logo_path":"/fVXreZkiJTOq1cCi6htSQlPSy7R.png","name":"Pokeepsie Films","origin_country":"ES"},{"id":210099,"logo_path":"/d6HwljzlOzxJ4tXlrpRkNZaZMWL.png","name":"Amazon MGM Studios","origin_country":"US"}],"production_countries":[{"iso_3166_1":"ES","name":"Spain"},{"iso_3166_1":"US","name":"United States of America"}],"release_date":"2025-10-15","revenue":0,"runtime":112,"spoken_languages":[{"english_name":"Spanish","iso_639_1":"es","name":"Español"}],"status":"Released","tagline":"","title":"Culpa nuestra","video":false,"vote_average":7.618,"vote_count":427} \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1242404languageen b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1242404languageen new file mode 100644 index 0000000..39eee18 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3movie1242404languageen @@ -0,0 +1 @@ +{"adult":false,"backdrop_path":"/sb8Aq1RohASXyjT0uEOUUZJi5oI.jpg","belongs_to_collection":null,"budget":0,"genres":[{"id":18,"name":"Drama"}],"homepage":"https://www.netflix.com/title/81745480","id":1242404,"imdb_id":"tt32985279","origin_country":["IE"],"original_language":"en","original_title":"Steve","overview":"Over one intense day, the devoted head teacher of a last-chance reform school strives to keep his students in line while facing pressures of his own.","popularity":13.0327,"poster_path":"/wmLoMyofbseLfxiGgk1Iz5H97c3.jpg","production_companies":[{"id":196153,"logo_path":"/rdZiokZcHdb51C0uCTDjJyUBfc4.png","name":"Big Things Films","origin_country":"IE"}],"production_countries":[{"iso_3166_1":"IE","name":"Ireland"}],"release_date":"2025-09-19","revenue":0,"runtime":92,"spoken_languages":[{"english_name":"English","iso_639_1":"en","name":"English"}],"status":"Released","tagline":"A quiet storm of emotion.","title":"Steve","video":false,"vote_average":6.396,"vote_count":134} \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3tv287877languageen b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3tv287877languageen new file mode 100644 index 0000000..21233b7 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:api.themoviedb.org3tv287877languageen @@ -0,0 +1 @@ +{"adult":false,"backdrop_path":"/olKSgSZVyDjqd11Bgv1lMk36Jm7.jpg","created_by":[{"id":5476237,"credit_id":"683c0c2b6f2cd45f867ba527","name":"Judith Westermann","original_name":"Judith Westermann","gender":0,"profile_path":null}],"episode_run_time":[],"first_air_date":"2025-05-09","genres":[{"id":35,"name":"Comedy"}],"homepage":"","id":287877,"in_production":true,"languages":["de"],"last_air_date":"2025-06-27","last_episode_to_air":{"id":6218896,"name":"Episode 8","overview":"","vote_average":0.0,"vote_count":0,"air_date":"2025-06-27","episode_number":8,"episode_type":"standard","production_code":"","runtime":29,"season_number":1,"show_id":287877,"still_path":null},"name":"Drunter & Drüber - Chaos auf dem Friedhof","next_episode_to_air":null,"networks":[{"id":189,"logo_path":"/k1poBlW9HGDnIyZU67BtH3BXQuz.png","name":"ORF 1","origin_country":"AT"},{"id":1024,"logo_path":"/w7HfLNm9CWwRmAMU58udl2L7We7.png","name":"Prime Video","origin_country":""}],"number_of_episodes":8,"number_of_seasons":1,"origin_country":["AT"],"original_language":"de","original_name":"Drunter & Drüber - Chaos auf dem Friedhof","overview":"When a rotten gravestone kills the cemetery manager, his deputy Butz Bohrlich already sees himself as the new number one at Donnerscheidt Cemetery. However, the ambitious man is ignored and the new boss Ursula Fink is put in front of him.","popularity":1.5083,"poster_path":"/kIS1dc4PhVA9qDYIkPLytqzKUSh.jpg","production_companies":[{"id":220619,"logo_path":"/5g2txBSd5ZvRcwKNKy99RX00JYc.png","name":"RUNDFILM","origin_country":"AT"}],"production_countries":[{"iso_3166_1":"AT","name":"Austria"}],"seasons":[{"air_date":"2025-05-09","episode_count":8,"id":449135,"name":"Season 1","overview":"","poster_path":"/kIS1dc4PhVA9qDYIkPLytqzKUSh.jpg","season_number":1,"vote_average":0.0}],"spoken_languages":[{"english_name":"German","iso_639_1":"de","name":"Deutsch"}],"status":"Returning Series","tagline":"","type":"Scripted","vote_average":6.0,"vote_count":7} \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalfilmaour-fault-2025-me-titra-shqip b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalfilmaour-fault-2025-me-titra-shqip new file mode 100644 index 0000000..f5ea928 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalfilmaour-fault-2025-me-titra-shqip @@ -0,0 +1,12 @@ +Our Fault (2025) me Titra Shqip - Kokoshka.Digital | Filma Me Titra Shqip

Çfarë problemi ka?

KUJDES!!

Provoni të gjithë serverat para se të bëni një raportim! +Nese asnjë nga serverat nuk punon atëherë raportoni videon.

Ju lutemi vendosni adresen tuaj email për të marrë përgjigje
pasi të rregullohet problemi.

Zgjidh Serverin 20211 Shikime Raporto Problem

  • Shiko Trailerinyoutube.com
  • Server 1chuckle-tube.com
  • Server 2dsvcom
Our Fault (2025) me Titra Shqip

Our Fault (2025) me Titra Shqip

Oct. 15, 2025Spain113 Min.NR
Vlerësimi juaj: 0
8.5 4 vota

Përshkrimi i Filmit

Dasma e Jennës dhe Lionit sjell ribashkimin e shumëpritur midis Noah dhe Nick pas ndarjes së tyre. Pamundësia e Nick për të falur Noah qëndron si një pengesë e pakapërcyeshme. Ai, trashëgimtar i bizneseve të gjyshit të tij, dhe ajo, duke filluar jetën e saj profesionale, i rezistojnë nxitjes së një flake që është ende gjallë. Por tani që rrugët e tyre janë kryqëzuar përsëri, a do të jetë dashuria më e fortë se pakënaqësia?

Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Our Fault (2025) me Titra Shqip
Titulli origjinal Culpa nuestra
Vlerësimi TMDb 7.929 98 vota

Regjizori

Aktorët

Nicole Wallace isNoah Morán
Noah Morán
Gabriel Guevara isNick Leister
Nick Leister
Gabriela Andrada isSofía Zabala
Sofía Zabala
Marta Hazas isRafaella Leister
Rafaella Leister
Iván Sánchez isWilliam Leister
William Leister
Shpërndarë8

Tituj të Ngjashëm

As Luck Would Have It 2021 me Titra Shqip
She Cat (1983) me Titra Shqip
The Man Who Killed Hitler and Then the Bigfoot (2019) me Titra Shqip
Intruder in the Dust (1949) me Titra Shqip
Asgje nuk Harrohet aka Nothing is Forgotten (1985) Film Shqiptar
East of the Mountains (2021) me Titra Shqip
Everyday Miracles (2015) me Titra Shqip
Boys of Abu Ghraib (2014) me Titra Shqip
Life of Pi (2012) me Titra Shqip
The Factory (2018) me Titra Shqip
The Love Witch (2016) me Titra Shqip
God’s Not Dead: In God We Trust (2024) me Titra Shqip
3.3 4 vota
Vlerësimi Filmit
Abonohu
Njoftoni për
guest

0 Komente
Më të rejat
Më e vjetrat Më të votuarit
Reagimet në linjë
Shiko të gjitha komentet
Kokoshka.Digital© 2025 - Filma me Titra Shqip
0
Do të donim mendin tuaj, ju lutemi komentoni.x

+ + \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsCulpapercent20nuestrapercent202025 b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsCulpapercent20nuestrapercent202025 new file mode 100644 index 0000000..4969016 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsCulpapercent20nuestrapercent202025 @@ -0,0 +1,7 @@ +Culpa nuestra 2025 - Kokoshka.Digital | Filma Me Titra Shqip
Kokoshka.Digital© 2025 - Filma me Titra Shqip

+ + \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsOurpercent20Faultpercent202025 b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsOurpercent20Faultpercent202025 new file mode 100644 index 0000000..efda497 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalsOurpercent20Faultpercent202025 @@ -0,0 +1,7 @@ +Our Fault 2025 - Kokoshka.Digital | Filma Me Titra Shqip
Kokoshka.Digital© 2025 - Filma me Titra Shqip

+ + \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie1 b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie1 new file mode 100644 index 0000000..9bc6059 --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie1 @@ -0,0 +1 @@ +{"embed_url":"https:\/\/chuckle-tube.com\/e\/ysnreh6xejac","type":"iframe"} \ No newline at end of file diff --git a/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie2 b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie2 new file mode 100644 index 0000000..df3e50c --- /dev/null +++ b/src/source/__fixtures__/Kokoshka/https:kokoshka.digitalwp-jsondooplayerv2161211movie2 @@ -0,0 +1 @@ +{"embed_url":"https:\/\/dsvplay.com\/e\/3o4cg2dr81nn","type":"iframe"} \ No newline at end of file diff --git a/src/source/__snapshots__/Kokoshka.test.ts.snap b/src/source/__snapshots__/Kokoshka.test.ts.snap index b51f0e3..b4f0387 100644 --- a/src/source/__snapshots__/Kokoshka.test.ts.snap +++ b/src/source/__snapshots__/Kokoshka.test.ts.snap @@ -90,3 +90,28 @@ exports[`Kokoshka handle non-existent Steve 2025 1`] = `[]`; exports[`Kokoshka handle non-existent content gracefully 1`] = `[]`; exports[`Kokoshka handle non-existent episode gracefully 1`] = `[]`; + +exports[`Kokoshka handle our fault 2025 1`] = ` +[ + { + "meta": { + "countryCodes": [ + "al", + ], + "referer": "https://kokoshka.digital/filma/our-fault-2025-me-titra-shqip/", + "title": "Our Fault (2025) me Titra Shqip - Kokoshka.Digital | Filma Me Titra Shqip", + }, + "url": "https://chuckle-tube.com/e/ysnreh6xejac", + }, + { + "meta": { + "countryCodes": [ + "al", + ], + "referer": "https://kokoshka.digital/filma/our-fault-2025-me-titra-shqip/", + "title": "Our Fault (2025) me Titra Shqip - Kokoshka.Digital | Filma Me Titra Shqip", + }, + "url": "https://dsvplay.com/e/3o4cg2dr81nn", + }, +] +`;