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

TVPlay support broken #4119

Closed
aleksejspopovs opened this issue Nov 5, 2014 · 2 comments
Closed

TVPlay support broken #4119

aleksejspopovs opened this issue Nov 5, 2014 · 2 comments

Comments

@aleksejspopovs
Copy link

@aleksejspopovs aleksejspopovs commented Nov 5, 2014

~ → youtube-dl http://www.tvplay.lv/parraides/dombura-studija/476817 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.tvplay.lv/parraides/dombura-studija/476817', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.02.1
[debug] Python version 3.4.2 - Linux-3.16.4-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.4.2, ffprobe 2.4.2
[debug] Proxy map: {}
[TVPlay] 476817: Downloading video JSON
[TVPlay] 476817: Downloading streams JSON
[debug] Invoking downloader on 'http://mtgxlv01-vh.akamaihd.net/z//lnt/domubura_studija/klipi/2014.11.03.dombuda_studija_1.dala.mp4/manifest.f4m'
[download] Downloading f4m manifest
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1052, in process_info
    success = dl(filename, info_dict)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1028, in dl
    return fd.download(name, info)
  File "/usr/lib/python3.4/site-packages/youtube_dl/downloader/common.py", line 292, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.4/site-packages/youtube_dl/downloader/f4m.py", line 226, in real_download
    manifest = self.ydl.urlopen(man_url).read()
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1286, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 499, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

It appears that this happens because the streams JSON contains two links:

hls: "http://mtgxlv01-vh.akamaihd.net/i//lnt/domubura_studija/klipi/2014.11.03.dombuda_studija_1.dala.mp4/master.m3u8?__b__=300",
medium: "http://mtgxlv01-vh.akamaihd.net/z//lnt/domubura_studija/klipi/2014.11.03.dombuda_studija_1.dala.mp4/manifest.f4m"

The hls one works just fine, but youtube-dl is apparently trying the medium one, which 403s.

@naglis naglis closed this in 73689da Nov 12, 2014
@naglis
Copy link
Collaborator

@naglis naglis commented Nov 12, 2014

Hi @popoffka,
thanks for the report! This issue should be fixed in the next release of youtube-dl. Please comment here or open a new issue if this problem persists in the next release.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 20, 2014

Fixed in youtube-dl 2014.11.20. See our FAQ if you have problems updating.

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
3 participants
You can’t perform that action at this time.