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

Problem with angle backets in subtitles #1

Closed
edrx opened this issue Apr 17, 2023 · 1 comment
Closed

Problem with angle backets in subtitles #1

edrx opened this issue Apr 17, 2023 · 1 comment

Comments

@edrx
Copy link

edrx commented Apr 17, 2023

Hi! I am the author of this thing here,

http://anggtwu.net/find-yttranscript-links.html

that uses youtube_transcript_downloader in a REPL, and I've just discovered that in some cases y_t_d handles angle brackets incorrectly. Here's an example. In this video, at 0:14,

http://www.youtube.com/watch?v=qM0Luz78qGw#t=0m14s

the subtitles have an "f8" between angle brackets, and if we run this,

import youtube_transcript_downloader
url    = "http://www.youtube.com/watch?v=qM0Luz78qGw"
f      = "find-{c}video"
tr     = youtube_transcript_downloader.get_transcript(url)
trits0 = tr.items()
trits1 = '\n'.join((key + ' ' + text for key, text in trits0))
print(trits1)

the line at 0:14 becomes this:

00:14 and if we type  several times

The <f8> disappears... is that something easy to fix?

@t4skmanag3r
Copy link
Owner

that's odd, the transcript from the video track is different from the one you get from their API (you can see it by clicking ... -> show transcript, under the video). I don't think I can really do anything since it's on their side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants