pc035860 / YCS-cont

Chrome Extension: YCS. Search for comments and authors in YouTube videos
MIT License
77 stars 6 forks source link

Fix transcript searching #8

Closed pc035860 closed 5 months ago

pc035860 commented 5 months ago

Issue #5

The original innertube API /youtubei/v1/get_transcript no longer functions, as it now returns a 404 error.

We re-implement the transcript loading process, this time using another transcript API /api/timedtext, which is the method employed by youtube-transcript-api.

Finally, we adapt the timedtext results so that they are in line with the original get_transcript results that we require.

Here is the priority order for caption selection when multiple options are available:

  1. Must be of the 'asr' kind (Automatic Speech Recognition)
  2. English
  3. Other languages