[Bug] Playlist stops loading when there is a video that has [Video blocked in country]
See original GitHub issueBug report
Playlist stops loading when there is a video that is unavailable in your country, and error gets thrown. Even though there are some songs in the playlist that do not have the tag [Video blocked in country].
Checklist
[x] I have searched for similar bugs in the issues. [x] I will add the bug label to this issue.
Version Info
- Ytmdl version:
2020.11.20-1
- Youtube-dl version:
2020.11.17
How Ytmdl was installed?
With yay ( from the aur ) and youtube-dl with pacman
Write here how you installed ytmdl. If it was through pip or some other way. yay ytmdl pacman -S youtube-dl
Console Log
~ ytmdl https://www.youtube.com/playlist\?list\=PL-7nmTLmYrj0VQIdGrvSyoubCG4CtDC68 --level DEBUG
==> Youtube playlist passed...extracting!
==> Playlist: PL-7nmTLmYrj0VQIdGrvSyoubCG4CtDC68
==> 18 songs found
==> Logger running in DEBUG mode
==> Passed args: Namespace(SONG_NAME=[], album=None, artist=None, choice=None, disable_file=False, disable_metaadd=False, format='mp3', get_opts=False, ignore_errors=False, level='DEBUG', list=None, list_level=False, manual_meta=False, nolocal=False, pl_end=None, pl_items=None, pl_start=None, proxy=None, quiet=False, skip_meta=False, song=None, trim=False, url='https://www.youtube.com/watch?v=g6wvGks0D6Y')
==> []
==> https://www.youtube.com/watch?v=g6wvGks0D6Y
ERROR: Video unavailable
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 532, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/youtube.py", line 2029, in _real_extract
raise ExtractorError(error_message, expected=True)
youtube_dl.utils.ExtractorError: Video unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/ytmdl", line 469, in <module>
extract_data()
File "/usr/bin/ytmdl", line 462, in extract_data
main(args)
File "/usr/bin/ytmdl", line 215, in main
song_name = yt.get_title(args.url)
File "/usr/lib/python3.8/site-packages/ytmdl/yt.py", line 327, in get_title
data = ydl.extract_info(url, False)
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 820, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 625, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 595, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: Video unavailable
Description
Playlist stops loading when there is a video that is unavailable in your country, and error gets thrown. Even though there are some songs in the playlist that do not have the tag [Video blocked in country], ytmdl gives an error and does not download any songs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
[Update: Dec. 16] YouTube bugs/issues & pending ...
Here we are tracking all the bugs and problems found on YouTube and their status as well as any pending improvements that are...
Read more >Video isn't available in my country/region - YouTube Help
Some YouTube videos may not be available in your country/region for the following reasons: Video owners have chosen to make their content available...
Read more >YouTube Not Working? Try These Quick Fixes [14 Methods]
How to watch YouTube videos if banned in your country? ... There are numerous ways to fix YouTube not loading errors, and some...
Read more >How to Watch Blocked YouTube Videos – 4 Solutions
Since YouTube blocked specific content in some countries, in this case, you can change your location to bypass YouTube regional filter. So how ......
Read more >How to resolve the problem of YouTube loading, but not ...
It can also be that the sound device has been set to a different bitrate than what Youtube uses and the browser cannot...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems to give me the same output.
Worked perfectly! Thanks 😄