-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[YouTube] Avoid crash if uploader_id extraction fails
See #31530.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix!
This comment was marked as resolved.
Sorry, something went wrong.
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git clone https://github.com/ytdl-org/youtube-dl.git
cd youtube-dl
make youtube-dl
sudo mv /usr/local/bin/youtube-dl /usr/local/bin/youtube-dl.old
sudo mv youtube-dl /usr/local/bin/
chmod 755 /usr/local/bin/youtube-dl
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that fix!
This comment was marked as resolved.
Sorry, something went wrong.
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw this line of code yesterday and I was wondering why the source code wouldn't fail but the executable failed. Duh.. the release didn't have the Fatal flag set to 'false'. Thank you!
@ProvisionlabTeam I've cloned the source code and built the package myself using pip. Or you can call 'python main.py [Video URL] ' from the source code to download the video. lol..
@dirkf I did notice with some combination of the -f argument parameter the program still crash with 'uploader id' regex error. I can try to figure out the combination and update this comment if this error should always 'gracefully' halt
Thanks again!
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but that has been true since 2022-01.
Could only happen if
owner_profile_url
was truthy but not a string. The code that setsowner_profile_url
shouldn't be able to do that, and it wouldn't depend on format selection anyway. Maybe some other error that looks similar? See #31577 (comment).2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dirkf I'll check. I've definitely seen the regex error with different combination of parameters for -f. Or maybe it was for extracting audio. I've lost history of my commands so I'd have to brute force it. Lol. Thanks for the quick fixes and the replies. Appreciate it!
This comment was marked as resolved.
Sorry, something went wrong.
2dd6c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just get a nightly build. See #31530. Also, @1paulofernandes.
This comment was marked as resolved.
Sorry, something went wrong.