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.

Revert "disable wyzie :("

This reverts commit 9ab5bc4ce5c5c739bb7ea3426c12126770212523.

Pas ef1a0893 d8ad9a39

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