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

Add login support for TVNOW #21900

Open
DerBunteBall opened this issue Jul 26, 2019 · 0 comments
Open

Add login support for TVNOW #21900

DerBunteBall opened this issue Jul 26, 2019 · 0 comments

Comments

@DerBunteBall
Copy link

@DerBunteBall DerBunteBall commented Jul 26, 2019

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2019.07.16
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Adding support for login to TVNow with username and password. It seems that not all videos which need an account are DRM protected. So the DRM verification should be combined with a login capability.

Check links like this:

https://www.tvnow.de/shows/das-strafgericht-10731
https://www.tvnow.de/serien/das-strafgericht-28

These links result in different output of youtube-dl.

First link

[TVNowShow] 10731: Downloading JSON metadata
[download] Downloading playlist: 10731
[TVNowShow] playlist 10731: Collected 36 video ids (downloading 36 of them)
[download] Downloading video 1 of 36
[TVNowAnnual] 2016-06: Downloading JSON metadata
[download] Downloading playlist: 10731/2016-06
[TVNowAnnual] playlist 10731/2016-06: Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2
[TVNow] das-strafgericht/einsam-zweisam-geldkassettenraub: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Lukass-iMac:Das.Strafgericht.RTLplus lukaslaukamp$ youtube-dl --verbose -c https://www.tvnow.de/shows/das-strafgericht-10731 | tee error.log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-c', u'https://www.tvnow.de/shows/das-strafgericht-10731']
[debug] Encodings: locale UTF-8, fs utf-8, out None, pref UTF-8
[debug] youtube-dl version 2019.07.16
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1.4, ffprobe 4.1.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[TVNowShow] 10731: Downloading JSON metadata
[download] Downloading playlist: 10731
[TVNowShow] playlist 10731: Collected 36 video ids (downloading 36 of them)
[download] Downloading video 1 of 36
[TVNowAnnual] 2016-06: Downloading JSON metadata
[download] Downloading playlist: 10731/2016-06
[TVNowAnnual] playlist 10731/2016-06: Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2
[TVNow] das-strafgericht/einsam-zweisam-geldkassettenraub: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Second Link

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-c', u'--verbose', u'https://www.tvnow.de/serien/das-strafgericht-28']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.16
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1.4, ffprobe 4.1.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[TVNowShow] 28: Downloading JSON metadata
[download] Downloading playlist: 28
[TVNowShow] playlist 28: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[TVNowSeason] 4: Downloading JSON metadata
[download] Downloading playlist: 28/4
[TVNowSeason] playlist 28/4: Collected 38 video ids (downloading 38 of them)
[download] Downloading video 1 of 38
[TVNow] das-strafgericht/mord-am-deich-04-folge-602-ea-141205: Downloading JSON metadata
[TVNow] 244413: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[TVNow] 244413: Downloading MPD manifest
WARNING: Failed to download MPD manifest: HTTP Error 403: Forbidden
[TVNow] 244413: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[TVNow] 244413: Downloading ISM manifest
WARNING: Failed to download ISM manifest: HTTP Error 403: Forbidden
[TVNow] 244413: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[TVNow] 244413: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
ERROR: Video 244413 is DRM protected
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/tvnow.py", line 178, in _real_extract
    return self._extract_video(info, display_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/tvnow.py", line 72, in _extract_video
    'Video %s is DRM protected' % video_id, expected=True)
ExtractorError: Video 244413 is DRM protected

I'm having the hope that the first link simply doesn't work due to the missing login. The second link seems to have a correct DRM detection (never got an error like this. So I'm not sure if these 403 errors are normal in this case). They simply seem to make money with the premium account by allowing watching stuff on mobile devices. There is stuff you can't watch on an iPad, but download it with youtube-dl (e.g. this: https://www.tvnow.de/shows/das-jugendgericht-10730). They simply seem to detect an mobile device with JavaScript and only allow the app. So I'm not sure whether the fact you need to login automatically makes stuff undownloadable.

So it would be nice to check if a login feature could get more stuff.

Best Regards

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.