Skip to content

Instantly share code, notes, and snippets.

@ac130kz
Created June 2, 2018 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ac130kz/5d05ff626180edacbf9f3494deba2b62 to your computer and use it in GitHub Desktop.
Save ac130kz/5d05ff626180edacbf9f3494deba2b62 to your computer and use it in GitHub Desktop.
mps-youtube crash
Goldie - Inner City Life (HD) [03:52]
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1974, in _real_extract
raise ExtractorError(unavailable_message, expected=True)
youtube_dl.utils.ExtractorError: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/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/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 613, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 583, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 316, in stream_details
streams.get(song, force=failcount, callback=screen.writestatus)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/streams.py", line 51, in get
p = util.get_pafy(vid, force=force, callback=callback)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/util.py", line 207, in get_pafy
p = pafy.new(ytid, callback=callback_fn)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 29, in __init__
super(YtdlPafy, self).__init__(*args, **kwargs)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_shared.py", line 96, in __init__
self._fetch_basic()
File "/home/ac130kz/.local/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 [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1974, in _real_extract
raise ExtractorError(unavailable_message, expected=True)
youtube_dl.utils.ExtractorError: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/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/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 613, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 583, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 316, in stream_details
streams.get(song, force=failcount, callback=screen.writestatus)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/streams.py", line 51, in get
p = util.get_pafy(vid, force=force, callback=callback)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/util.py", line 207, in get_pafy
p = pafy.new(ytid, callback=callback_fn)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 29, in __init__
super(YtdlPafy, self).__init__(*args, **kwargs)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_shared.py", line 96, in __init__
self._fetch_basic()
File "/home/ac130kz/.local/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 [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1974, in _real_extract
raise ExtractorError(unavailable_message, expected=True)
youtube_dl.utils.ExtractorError: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/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/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 613, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 583, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 316, in stream_details
streams.get(song, force=failcount, callback=screen.writestatus)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/streams.py", line 51, in get
p = util.get_pafy(vid, force=force, callback=callback)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/util.py", line 207, in get_pafy
p = pafy.new(ytid, callback=callback_fn)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 29, in __init__
super(YtdlPafy, self).__init__(*args, **kwargs)
File "/home/ac130kz/.local/lib/python3.6/site-packages/pafy/backend_shared.py", line 96, in __init__
self._fetch_basic()
File "/home/ac130kz/.local/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 [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./mpsyt", line 11, in <module>
load_entry_point('mps-youtube==0.2.8', 'console_scripts', 'mpsyt')()
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/main.py", line 152, in main
if matchfunction(i.function, i.regex, userinput):
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/main.py", line 69, in matchfunction
func(*matches)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/commands/play.py", line 123, in play_all
play(options, "1-" + str(len(g.model)))
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/commands/play.py", line 103, in play
g.PLAYER_OBJ.play(songlist, shuffle, repeat, override)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 74, in play
softrepeat=self.softrepeat)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 328, in stream_details
return stream_details(song, failcount=failcount, override=override, softrepeat=softrepeat)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 328, in stream_details
return stream_details(song, failcount=failcount, override=override, softrepeat=softrepeat)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 328, in stream_details
return stream_details(song, failcount=failcount, override=override, softrepeat=softrepeat)
File "/home/ac130kz/.local/lib/python3.6/site-packages/mps_youtube/player.py", line 343, in stream_details
cached = g.streams[song.ytid]
KeyError: 'lx9-fjlh7Y4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment