Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Zattoo: Recording of replay (within 7 days) doesn't work, live stream recording works fine. Pls advise.. #17175
Comments
|
dstftw, I found your email is it ok for me to send you my login? |
|
I can confirm that only live streams work. Permanent recordings (available in Switzerland) can't be downloaded as well. |
|
@marco79cgn Could you provide a debug log? I'm using a Zattoo partner and everything seems to work fine here... |
|
Ok, I could do a recording an my free Zattoo account and I tried to access it with youtube-dl. I get an error too. Here is my debug log:
I will try to investigate the cause of the error. |
|
//Update:
|
|
I have just submitted a PR to address the issue. Since I only have a free Zattoo acccount (not premium), I could only test it for recordings and not for the replay stuff. It would be nice if someone could test it for regular videos too, you can just clone the |
|
Awesome, thanks for the quick fix! I can confirm that with the version of your branch now everything works just fine: live streams, permanent recordings (Zattoo CH Premium) as well as replay streams. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.08.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
For the recording for a Zattoo Replay session (see below an example), the zattoo extractor doesn't work somehow and the replay session doesn't get recorded. The live stream recording for Zattoo works well as ever. Please advise..
youtube-dl https://zattoo.com/watch/srf1/143687052-rosamunde-pilcher-klippen-der-liebe --netrc --verbose
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):youtube-dl https://zattoo.com/watch/srf1/143687052-rosamunde-pilcher-klippen-der-liebe --netrc --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://zattoo.com/watch/srf1/143687052-rosamunde-pilcher-klippen-der-liebe', u'--netrc', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.08.04
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Proxy map: {}
[Zattoo] Downloading app token
[Zattoo] Opening session
[Zattoo] Logging in
[Zattoo] 143687052: Downloading video information
ERROR: Unable to download JSON metadata: '' (caused by BadStatusLine("''",)); 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 599, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1102, in https_open
req, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1132, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 417, in _read_status
raise BadStatusLine(line)