Yritin tallentaa youtubesta youtube-dl tiedostoa käyttäen, mutta ei onnistunut. Tuli tällainen vastaus:
#
[youtube] ew_2pW6JzuI: Downloading webpage
[youtube] ew_2pW6JzuI: Downloading video info webpage
[youtube] ew_2pW6JzuI: Extracting video information
[youtube] ew_2pW6JzuI: Downloading js player en_US-vflkk7pUE
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 919, in _extract_signature_function
errnote='Download of %s failed' % player_url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 517, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 424, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 404, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 421, in open
protocol = req.get_type()
File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflkk7pUE/base.js
(caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflkk7pUE/base.js',)); please report this issue on
https://yt-dl.org/bug . Make sure you are using the latest version; see
https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
#
Minusta tuo näytti ihan samalta kuin edellinen, jonka tallensin. Kysymyksessä oli Prokofjevin Viulukonsertto no: 1. Onnistunut versio oli osoitteessa:
https://www.youtube.com/watch?v=R23d6k9yz5E ja epäonnistunut osoitteessa:
https://www.youtube.com/watch?v=ew_2pW6JzuI&t=647s Kysymyksessä oli siis sama konsertto, mutta eri orkesteri ja eri viulusolisti. Tallennan välillä youtubesta löytääkseni tarvitsemani kappaleen helpommin.
Onko minulla vanha youtube-dl, vai mistäköhän on kysymys? Löytyykö ratkaisua?