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 falls back to generic... #8419

Closed
RingoTheDog opened this issue Feb 4, 2016 · 2 comments
Closed

NHL falls back to generic... #8419

RingoTheDog opened this issue Feb 4, 2016 · 2 comments

Comments

@RingoTheDog
Copy link

https://www.nhl.com/news/dennis-wideman-suspended/c-278258934

youtube-dl.py -v "https://www.nhl.com/news/dennis-wideman-suspended/c-278258
934"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.nhl.com/news/dennis-wideman-sus
pended/c-278258934']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.02.01
[debug] Python version 2.7.11 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71346-gdf4fca2
[debug] Proxy map: {}
[generic] c-278258934: Requesting header
WARNING: Falling back on generic information extractor.
[generic] c-278258934: Downloading webpage
[generic] c-278258934: Extracting information
ERROR: Unsupported URL: https://www.nhl.com/news/dennis-wideman-suspended/c-2782
58934
Traceback (most recent call last):
File "C:\youtube-dl.py\youtube_dl\extractor\generic.py", line 1289, in _real_e
xtract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "C:\youtube-dl.py\youtube_dl\compat.py", line 248, in compat_etree_fromst
ring
doc = _XML(text, parser=etree.XMLParser(target=etree.TreeBuilder(element_fac
tory=_element_factory)))
File "C:\youtube-dl.py\youtube_dl\compat.py", line 237, in _XML
parser.feed(text)
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 80, column 293
Traceback (most recent call last):
File "C:\youtube-dl.py\youtube_dl\YoutubeDL.py", line 666, in extract_info
ie_result = ie.extract(url)
File "C:\youtube-dl.py\youtube_dl\extractor\common.py", line 313, in extract
return self._real_extract(url)
File "C:\youtube-dl.py\youtube_dl\extractor\generic.py", line 1919, in _real_e
xtract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.nhl.com/news/dennis-wideman-suspe
nded/c-278258934

Same video different urls:
https://www.nhl.com/video/c-40784403 this URL forwards to:
https://www.nhl.com/video/wideman-suspended-by-nhl/t-277350912/c-40784403

Thanks
Ringo

@RingoTheDog
Copy link
Author

@RingoTheDog
Copy link
Author

Here is a bit more info...hopefully it will be helpful:

If I attempt this URL:
https://www.nhl.com/bruins/video/bruins-beat-back-at-home/t-277464000/c-41694303
...the generic fails with usupported URL

The generic extractor IS able to pull the video from the direct link:
http://md-akc.med.nhl.com/mp4/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579536/asset_1800k.mp4

All of the versions can be found in here:

{"type":"contentXrefSystem","value":"NHL-AMS-WEB","displayName":"NHL-AMS-WEB"}],
"playbacks":[
{"name":"HTTP_CLOUD_MOBILE","width":"null","height":"null","url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_mobile.m3u8"},
{"name":"HTTP_CLOUD_TABLET","width":"null","height":"null","url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_tablet.m3u8"},
{"name":"HTTP_CLOUD_TABLET_60","width":null,"height":null,"url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_tablet60.m3u8"},
{"name":"HTTP_CLOUD_WIRED","width":"null","height":"null","url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_wired.m3u8"},
{"name":"HTTP_CLOUD_WIRED_60","width":null,"height":null,"url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_wired60.m3u8"},
{"name":"HTTP_CLOUD_WIRED_WEB","width":null,"height":null,"url":"http://md-akc.med.nhl.com/hls/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579534/master_wired_web.m3u8"},
{"name":"FLASH_192K_320X180","width":"320","height":"180","url":"http://md-akc.med.nhl.com/mp4/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579536/asset_192k.mp4"},
{"name":"FLASH_450K_400X224","width":"400","height":"224","url":"http://md-akc.med.nhl.com/mp4/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579536/asset_450k.mp4"},
{"name":"FLASH_1200K_640X360","width":"640","height":"360","url":"http://md-akc.med.nhl.com/mp4/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579536/asset_1200k.mp4"},
{"name":"FLASH_1800K_960X540","width":"960","height":"540","url":"http://md-akc.med.nhl.com/mp4/nhl/2016/02/22/ae823bbd-7f7b-4a15-8738-d3a52efd2eb0/1456171579536/asset_1800k.mp4"}]},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant