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

tv2.no is broken in several ways #20509

Closed
forthrin opened this issue Mar 30, 2019 · 0 comments
Closed

tv2.no is broken in several ways #20509

forthrin opened this issue Mar 30, 2019 · 0 comments

Comments

@forthrin
Copy link

@forthrin forthrin commented Mar 30, 2019

News URL

$ youtube-dl --verbose https://www.tv2.no/nyheter/10512084/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.tv2.no/nyheter/10512084/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf8, pref UTF-8
[debug] youtube-dl version 2019.03.18
[debug] Git HEAD: b8526c7
[debug] Python version 2.7.16 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg git-2019-03-22-47e12966b, ffprobe git-2019-03-22-47e12966b, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 10512084: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 10512084: Downloading webpage
[generic] 10512084: Extracting information
ERROR: Unsupported URL: https://www.tv2.no/nyheter/10512084/

Video URL

$ youtube-dl --verbose https://www.tv2.no/v/1439772/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.tv2.no/v/1439772/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf8, pref UTF-8
[debug] youtube-dl version 2019.03.18
[debug] Git HEAD: b8526c7
[debug] Python version 2.7.16 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg git-2019-03-22-47e12966b, ffprobe git-2019-03-22-47e12966b, rtmpdump 2.4
[debug] Proxy map: {}
[TV2] 1439772: Downloading play JSON
Traceback (most recent call last):
  File "youtube-dl/youtube_dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "youtube-dl/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "youtube-dl/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 2006, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 794, in extract_info
    ie_result = ie.extract(url)
  File "youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "youtube-dl/youtube_dl/extractor/tv2.py", line 48, in _real_extract
    video_url = item.get('url')
AttributeError: 'unicode' object has no attribute 'get'

Test URL

$ youtube-dl --verbose http://www.tv2.no/2015/05/16/nyheter/alesund/krim/pingvin/6930542
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'http://www.tv2.no/2015/05/16/nyheter/alesund/krim/pingvin/6930542']
[debug] Encodings: locale UTF-8, fs utf-8, out utf8, pref UTF-8
[debug] youtube-dl version 2019.03.18
[debug] Git HEAD: b8526c7
[debug] Python version 2.7.16 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg git-2019-03-22-47e12966b, ffprobe git-2019-03-22-47e12966b, rtmpdump 2.4
[debug] Proxy map: {}
[TV2Article] 6930542: Downloading webpage
[download] Downloading playlist: Russen hetses etter pingvintyveri - innrømmer å ha åpnet luken på buret
[TV2Article] playlist Russen hetses etter pingvintyveri - innrømmer å ha åpnet luken på buret: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: Russen hetses etter pingvintyveri - innrømmer å ha åpnet luken på buret
  • I've verified and I assure that I'm running youtube-dl 2019.03.18
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
  • Bug report (encountered problems with youtube-dl)
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.

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