-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Wrong channel downloaded #46
Comments
Hi, Do you mean you used this link https://www.youtube.com/@TomScottGo/videos like the command below?
If I'm not mistaken, the channel ID is extracted from this specific URL (the /videos at the end of the URL is required). |
Seems like this happens on channels where they have extra channels listed on their home page. problem might be from line 38 in this function because it gets the first channel id it finds: def get_channel_id(url, s):
"""
Scrapes channel id from the channel page
"""
res = s.get(url)
if res.status_code == 200:
html = res.text
channel_id = re.search('channelId":"(.{24})"', html).group(1)
return channel_id
else:
return None |
You're right. There are multiple We need to check the given channel URL against the expected pattern. |
Thanks for adding the code in #52. That would have been good enough. Because i aborted a task, as i "couldn't" download scotts subtitles before, when using the link without /videos.. 👍 The current state is good enough for me. Feel free to close. |
Used link: https://youtube.com/@TomScottGo
yt_fts version: 0.1.15
Downloaded subs where from all from @tomscottplus. This is not what i expected.
The text was updated successfully, but these errors were encountered: