Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot retrieve transcript: "engagement-panel-searchable-transcript" missing from some videos #866

Open
4 tasks done
hatemmezlini opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@hatemmezlini
Copy link

hatemmezlini commented Jan 8, 2025

Steps to reproduce

const { Innertube } = require('youtubei.js');

async function main() {
    const youtube = await Innertube.create({
            lang: 'en',
            location: 'US',
            retrieve_player: true,
        });
    const fetchTranscript = async () => {
        const videoId = "1nQXYsm4pr8";
        const info = await youtube.getInfo(videoId);
        console.log(info.page[1].engagement_panels);  // Missing engagement-panel-searchable-transcript panel but present on YT
        const transcript = await info.getTranscript();  // <--  throw new InnertubeError('Transcript panel not found. Video likely has no transcript.');
        return transcript;
     }
     const transcript = await fetchTranscript();
     console.log(transcript);
 }
 main();

Failure Logs

Error in main function: InnertubeError: Transcript panel not found. Video likely has no transcript.
    at ...
  date: 2025-01-08T17:28:22.904Z,
  version: '12.2.0'
}

Expected behavior

TranscriptInfo {
  transcript: Transcript {
    type: 'Transcript',
    content: TranscriptSearchPanel {
      type: 'TranscriptSearchPanel',
      header: null,
      body: [TranscriptSegmentList],
      footer: [TranscriptFooter],
      target_id: 'engagement-panel-searchable-transcript-search-panel'
    }
  }
}

Current behavior

engagement-panel-searchable-transcript is missing when looking at panels at info.page

Version

Default

Anything else?

It works with this videoID: DXR_MzGW768 because it's in English but not the other one (Romanian). Both videos have only automatically generated cc

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@hatemmezlini hatemmezlini added the bug Something isn't working label Jan 8, 2025
@hatemmezlini hatemmezlini changed the title Panel "engagement-panel-searchable-transcript" missing from some videos Cannot retrieve transcript: "engagement-panel-searchable-transcript" missing from some videos Jan 10, 2025
@hatemmezlini
Copy link
Author

Any news ?

@LuanRT
Copy link
Owner

LuanRT commented Jan 31, 2025

I haven't checked this yet. It could be that the engagement panel is somewhere else on the page, or YouTube is simply not returning it due to a bug on their side, or possibly a parameter we're not providing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants