mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
logging stuff
This commit is contained in:
parent
44af9a3bc3
commit
7ace80fc20
2 changed files with 5 additions and 1 deletions
|
|
@ -94,6 +94,10 @@ export async function addOpenSubtitlesCaptions(
|
|||
Promise.race([openSubsPromise, timeout(5000, 'OpenSubtitles')]),
|
||||
]);
|
||||
|
||||
// Debug logging
|
||||
// console.log('Wyzie captions found:', wyzieCaptions?.length || 0);
|
||||
// console.log('OpenSubtitles captions found:', openSubsCaptions?.length || 0);
|
||||
|
||||
// Add any successful captions to our result
|
||||
if (wyzieCaptions) allCaptions.push(...wyzieCaptions);
|
||||
if (openSubsCaptions) allCaptions.push(...openSubsCaptions);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ export async function addWyzieCaptions(
|
|||
|
||||
console.log('Searching Wyzie subtitles with params:', searchParams);
|
||||
const wyzieSubtitles: SubtitleData[] = await searchSubtitles(searchParams);
|
||||
console.log('Found Wyzie subtitles:', wyzieSubtitles);
|
||||
// console.log('Found Wyzie subtitles:', wyzieSubtitles);
|
||||
|
||||
const wyzieCaptions: Caption[] = wyzieSubtitles.map((subtitle) => ({
|
||||
id: subtitle.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue