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

NHL.com Playlist Support #21737

Closed
feerlessleadr opened this issue Jul 11, 2019 · 1 comment
Closed

NHL.com Playlist Support #21737

feerlessleadr opened this issue Jul 11, 2019 · 1 comment

Comments

@feerlessleadr
Copy link

@feerlessleadr feerlessleadr commented Jul 11, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.07.02
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

kevin@linuxserver:~$ ./devils-nhl-videos
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'(bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][fps>30]/bestvideo[vcodec=vp9][height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec=vp9.2][height>=1080]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec=vp9.2][height>=720][fps>30]/bestvideo[vcodec=vp9][height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec=vp9.2][height>=720]/bestvideo[vcodec=vp9][height>=720]/bestvideo[height>=720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best', u'--merge-output-format', u'mkv', u'-o', u'/home/kevin/scripts/youtube/tmp/%(upload_date)s - %(title)s.%(ext)s', u'--add-metadata', u'--ignore-errors', u'--proxy', u'', u'--write-all-thumbnails', u'--embed-thumbnail', u'--write-info-json', u'--dateafter', u'20190409', u'--verbose', u'--download-archive', u'/home/kevin/scripts/youtube/downloaded.txt', u'https://www.nhl.com/devils/video/t-277437418']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.02
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-54-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 4.1.3-0york1, ffprobe 4.1.3-0york1
[debug] Proxy map: {}
[generic] t-277437418: Requesting header
WARNING: Falling back on generic information extractor.
[generic] t-277437418: Downloading webpage
[generic] t-277437418: Extracting information
ERROR: Unsupported URL: https://www.nhl.com/devils/video/t-277437418
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 2357, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2551, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2540, in _XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1659, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1523, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 153, column 293
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 3333, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.nhl.com/devils/video/t-277437418

Description

I've been using youtube-dl for quite some time for backing up my youtube channels and favorite playlists using a script on my Ubuntu Server 18.04 machine, and it has been working great.

I just found out that youtube-dl is also able to download videos from NHL.com (and the team websites, since all sites are run by the NHL), and while links for individual videos work, playlist links don't seem to work.

When I run my script using a link to a single nhl.com video (https://www.nhl.com/devils/video/1-on-1--mark-dennehy/t-277437418/c-68631703), it downloads without issue. However, when I run the exact same script with the playlist link (https://www.nhl.com/devils/video/t-277437418), as you can see above, I get an error that it is an unsupported URL.

Is it possible to add support for playlist links for NHL.com?

Thanks so much

@feerlessleadr
Copy link
Author

@feerlessleadr feerlessleadr commented Aug 26, 2019

For anyone else having this similar issue, a user on reddit was nice enough to provide a python scraper to provide the video links for ytdl to then download:

Reddit thread

shoutout to @nicholasserra for the script and for answering my follow up questions

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.