Spotify-downloader: Break the loop

Created on 9 Oct 2018  路  10Comments  路  Source: spotDL/spotify-downloader

  • [x] Using latest version as provided on the master branch
  • [x] [Searched](https://github.com/ritiek/spotify-downloader/issues?utf8=%E2%9C%93&q=is%3Aissue) for similar issues including closed ones

What is the purpose of your issue?

  • [ ] Bug
  • [ ] Feature Request
  • [x] Question
  • [ ] Other

Description


Hi.
Sometimes I read this log from spotdl:

INFO: Skipping "bla bla bla bla.mp3"
ERROR: This video contains content from WMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

ERROR: This video contains content from WMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

and spend a lot of time repeating this loop...
How can I do that in such cases, just give the warning and go to the next song or end the list?
Thanks

Log

bug

All 10 comments

@Pepetops I would like to recreate this problem to see if I can fix it. What was the Spotify/YouTube URL that caused this problem? Also, what country are you in?

<>
Error again on 45th song (Global 50):
INFO: 44. Cardi B, Bad Bunny, J Balvin - I LIKE IT (LYRIC VIDEO) (http://www.youtube.com/watch?v=SVWLlOAXpY4)
WARNING: "Cardi B - I Like It.mp3" already exists
INFO: Skipping "Cardi B - I Like It.mp3"
ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs
INFO: 46. 6ix9ine - STOOPID (Lyrics) ft. Bobby Shmurda (http://www.youtube.com/watch?v=Y8G2cGIA0Wo)
WARNING: "6ix9ine - STOOPID.mp3" already exists
INFO: Skipping "6ix9ine - STOOPID.mp3"
...
...
INFO: 50. Benny Blanco, Halsey & Khalid - Eastside (Lyrics) (http://www.youtube.com/watch?v=VPeWDg6B4sI)
WARNING: "benny blanco - Eastside (with Halsey Khalid).mp3" already exists
INFO: Skipping "benny blanco - Eastside (with Halsey Khalid).mp3"
ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
WARNING: Failed to download song. Will retry after other songs

This is the song:
https://open.spotify.com/track/78QR3Wp35dqAhFEc2qAGjE
And this is a log when I try to download it:
spotdl -s https://open.spotify.com/track/78QR3Wp35dqAhFEc2qAGjE
ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 507, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1892, in _real_extract
raise ExtractorError(error_message, expected=True)
youtube_dl.utils.ExtractorError: This video contains content from UMG, who has blocked it in your country on copyright grounds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 38, in _fetch_basic
self._ydl_info = ydl.extract_info(self.videoid, download=False)
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 815, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 620, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 590, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/spotdl", line 11, in
load_entry_point('spotdl==1.0.0', 'console_scripts', 'spotdl')()
File "/usr/lib/python3.6/site-packages/spotdl/spotdl.py", line 195, in main
download_single(raw_song=const.args.song)
File "/usr/lib/python3.6/site-packages/spotdl/spotdl.py", line 119, in download_single
content = youtube_tools.go_pafy(raw_song, meta_tags)
File "/usr/lib/python3.6/site-packages/spotdl/youtube_tools.py", line 35, in go_pafy
track_info = pafy.new(track_url)
File "/usr/lib/python3.6/site-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts)
File "/usr/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 29, in __init__
super(YtdlPafy, self).__init__(args, *kwargs)
File "/usr/lib/python3.6/site-packages/pafy/backend_shared.py", line 96, in __init__
self._fetch_basic()
File "/usr/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 41, in _fetch_basic
raise IOError(str(e).replace('YouTube said', 'Youtube says'))
OSError: ERROR: This video contains content from UMG, who has blocked it in your country on copyright grounds.

Regards

how about using youtube-dl option --geo-bypass?

Sorry for repeating this but there are anyway to pass options to youtube.tools library?

Hey, I'm really sorry I haven't been much on this issue.

I tried out https://www.youtube.com/watch?v=Y8G2cGIA0Wo, but it seems like even youtube-dl can't download it with --geo-bypass for the message now is:

This video contains content from Create Music Group, Inc., who has blocked it on copyright grounds.

which mentions nothing about whether the content is blocked globally or for some specific countries (I think we're safe to assume it being blocked globally here).

I'll check out some more YouTube videos and hope to find one that gives:

This video contains content from UMG, who has blocked it in your country on copyright grounds.

so I can check out whether --geo-bypass helps us out and push an appropriate patch.

EDIT: I haven't stumbled across any yet. If anyone reading this recalls such a blocked video, I'd be glad if you could share it here (any country, don't worry, I might find a VPN).

Hello,

For the following video:
https://www.youtube.com/watch?v=GPZ16SewZL4

I get the following message:

"This video contains content from WMG, who has blocked it in your country on copyright grounds.

I'm in Spain.
I tried:
youtube-dl.exe GPZ16SewZL4 --geo-bypass
youtube-dl.exe GPZ16SewZL4 --geo-bypass-country GB
youtube-dl.exe GPZ16SewZL4 --geo-verification-proxy 78.32.35.22
and got the same error message in all cases.

Any idea?

@aromot Yep, I seem to get the same message as well even when passing --geo-bypass.

"This video contains content from WMG, who has blocked it in your country on copyright grounds.

No support for v2. If the issue persists on v3, open a new issue.

I know it's late, just clearing out old issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RowanSkie picture RowanSkie  路  5Comments

linusg picture linusg  路  6Comments

marinabar picture marinabar  路  4Comments

mvrck19 picture mvrck19  路  5Comments

iateadonut picture iateadonut  路  4Comments