-
Notifications
You must be signed in to change notification settings - Fork 71
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
Repaired Fatal Error for Nonexistent URLs #301
Conversation
The change at line 184 breaks regular (non-playlist) downloads. Also, you think you could log a warning to the user instead of just silently not mirroring a video? e.g. |
It's your job to check URLs are alive. When you rip channels or playlists you do it at your own risk. Use yt-dlp to print out video IDs, pipe into batch file, rip one by one from batch. We can't do everything for you. Trying to do everything for the user increases the devs burden, increases the size of the codebase, and every attempt to do something a user thinks is a good idea leads to code breakage. I'm thinking of comments ripping. Look into yt-dlps flags. Not closing this in case you can make it work. |
Hey. Apologies for the bad commit, and thanks for running the tests! I'll take better care for the unit tests next time. I believe that the two lines I've added in, as insignificant as they are to the codebase, are worth the change for streamlining working on larger playlists. |
I just released a new commit and made sure that all 20 unit tests came out fine. I removed some redundant code and abstracted that away into a function for your convenience. |
@Windows81 Haven't had a chance to review yet, but wanted to say thank you for putting the effort into resolving this edge case 👏🏻 🙇♂️ |
You're welcome! It's not really an edge case when you're working with large playlists from channels which have had videos removed (which is almost every one). |
Thanks @Windows81 new version cut |
Hey. I tested it a bit more and made a new pull request for that. |
For playlists which contain nonexistent videos, entries may return as
None
. In that case, the program will print this stack trace:Tested on this playlist, which has one unavailable video.