Skip to content
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

grooveshark song download fails #3833

Closed
dmbrown opened this issue Sep 26, 2014 · 1 comment
Closed

grooveshark song download fails #3833

dmbrown opened this issue Sep 26, 2014 · 1 comment

Comments

@dmbrown
Copy link

@dmbrown dmbrown commented Sep 26, 2014

All grooveshark downloads are failing with the current version: 2014.09.25

$ youtube-dl http://grooveshark.com/s/Love+Always+Remains/3WcM61?src=5 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://grooveshark.com/s/Love+Always+Remains/3WcM61?src=5', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.25
[debug] Python version 2.7.7 - Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
[debug] Proxy map: {}
[generic] 3WcM61?src=5: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 3WcM61?src=5: Downloading webpage
[generic] 3WcM61?src=5: Extracting information
ERROR: Unsupported URL: http://grooveshark.com/s/Love+Always+Remains/3WcM61?src=5; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/generic.py", line 545, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/lib64/python2.7/site-packages/youtube_dl/utils.py", line 1509, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 66, column 109
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 524, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/common.py", line 181, in extract
    return self._real_extract(url)
  File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/generic.py", line 892, in _real_extract
    raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://grooveshark.com/s/Love+Always+Remains/3WcM61?src=5; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
@dmbrown
Copy link
Author

@dmbrown dmbrown commented Sep 26, 2014

OK, did a bit more digging, it looks like part of the grooveshark URL happens to be a python shebang. If I escape both # and ! in the shell, the correct extractor kicks in and the download is successful. I see that "fix_python_shebang" is the last operation in the current portage ebuild so I'll assume that the gentoo maintainer for the package is on top of this and will get it unmasked soon. Thanks for all the hard work!

$ youtube-dl http://grooveshark.com/\#\!/s/Love+Always+Remains/3WcM61?src=5
[Grooveshark] 3WcM61: Downloading player page
[Grooveshark] SWF Referer: http://grooveshark.com/static/JSQueue_20140923140621.swf
[Grooveshark] 3WcM61: Downloading player bootstrap data
[Grooveshark] CommunicationToken: fd07e4591817132dd6f887e57a1a82e07ce06431
[Grooveshark] Metadata URL: http://grooveshark.com/preload.php?hash=%2Fs%2FLove%2BAlways%2BRemains%2F3WcM61&1411693965590
[Grooveshark] 3WcM61: Downloading JSON metadata
[download] Destination: Love Always Remains-3WcM61.mp3
[download] 100% of 5.16MiB in 00:02
@dmbrown dmbrown closed this Sep 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.