pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable wyzie :(

Pas 9ab5bc4c 215cf9e3

+6 -7
+6 -7
src/utils/externalSubtitles/index.ts
··· 4 4 import { scrapeFebboxCaptions as _scrapeFebboxCaptions } from "./febbox"; 5 5 import { scrapeOpenSubtitlesCaptions } from "./opensubtitles"; 6 6 import { scrapeVdrkCaptions } from "./vdrk"; 7 - import { scrapeWyzieCaptions } from "./wyzie"; 8 7 9 8 export async function scrapeExternalSubtitles( 10 9 meta: PlayerMeta, ··· 25 24 const timeout = 10000; 26 25 27 26 // Create promises for each source with individual timeouts 28 - const wyziePromise = scrapeWyzieCaptions(tmdbId, imdbId, season, episode); 27 + // const wyziePromise = scrapeWyzieCaptions(tmdbId, imdbId, season, episode); 29 28 const openSubsPromise = scrapeOpenSubtitlesCaptions( 30 29 imdbId, 31 30 season, ··· 45 44 const allCaptions: import("@/stores/player/slices/source").CaptionListItem[] = 46 45 []; 47 46 let completedSources = 0; 48 - const totalSources = 3; 47 + const totalSources = 2; 49 48 50 49 // Helper function to handle individual source completion 51 50 const handleSourceCompletion = ( ··· 61 60 62 61 // Start all sources concurrently and handle them as they complete 63 62 const promises = [ 64 - Promise.race([wyziePromise, timeoutPromise]).then((captions) => { 65 - handleSourceCompletion("Wyzie", captions); 66 - return captions; 67 - }), 63 + // Promise.race([wyziePromise, timeoutPromise]).then((captions) => { 64 + // handleSourceCompletion("Wyzie", captions); 65 + // return captions; 66 + // }), 68 67 Promise.race([openSubsPromise, timeoutPromise]).then((captions) => { 69 68 handleSourceCompletion("OpenSubtitles", captions); 70 69 return captions;