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

[Playwire] Wrong URL returned for download resulting in HTTP error 403 #9531

Closed
snipem opened this issue May 18, 2016 · 2 comments
Closed

[Playwire] Wrong URL returned for download resulting in HTTP error 403 #9531

snipem opened this issue May 18, 2016 · 2 comments
Labels
bug

Comments

@snipem
Copy link
Contributor

@snipem snipem commented May 18, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.05.16. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.05.16

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other
$: ~/build/youtube-dl$ python -m youtube_dl -v http://config.playwire.com/21772/videos/v2/4840492/zeus.json
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://config.playwire.com/21772/videos/v2/4840492/zeus.json']
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[debug] Encodings: locale ANSI_X3.4-1968, fs ascii, out utf-8, pref ANSI_X3.4-1968
[debug] youtube-dl version 2016.05.16
[debug] Git HEAD: 11e6a0b

[debug] youtube-dl version 2016.05.16
[debug] Git HEAD: 11e6a0b
[debug] Python version 3.5.0 - Linux-4.2.3-1-ARCH-i686-with-arch
[debug] exe versions: ffmpeg 2.8.1, ffprobe 2.8.1, rtmpdump 2.4
[debug] Proxy map: {}
[Playwire] 4840492: Downloading JSON metadata
[Playwire] 4840492: Downloading XML
[debug] Invoking downloader on 'https://cdn.video.playwire.com/21772/videos/4840492/https://config.playwire.com/21772/videos/v2/4840492/abr-non-hd.m3u8'
[download] Destination: ITV_EL_SHOW_FULL-4840492.m3u8
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/44.0 (Chrome)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
' -i https://cdn.video.playwire.com/21772/videos/4840492/https://config.playwire.com/21772/videos/v2/4840492/abr-non-hd.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc file:ITV_EL_SHOW_FULL-4840492.m3u8.part
ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[https @ 0x98961a0] HTTP error 403 Forbidden
https://cdn.video.playwire.com/21772/videos/4840492/https://config.playwire.com/21772/videos/v2/4840492/abr-non-hd.m3u8: Server returned 403 Forbidden (access denied)


ERROR: ffmpeg exited with code 1
  File "/usr/lib/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/matze/build/youtube-dl/youtube_dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/home/matze/build/youtube-dl/youtube_dl/__init__.py", line 421, in main
    _real_main(argv)
  File "/home/matze/build/youtube-dl/youtube_dl/__init__.py", line 411, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 1736, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 687, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 733, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 1382, in process_video_result
    self.process_info(new_info)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 1644, in process_info
    success = dl(filename, info_dict)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 1586, in dl
    return fd.download(name, info)
  File "/home/matze/build/youtube-dl/youtube_dl/downloader/common.py", line 350, in download
    return self.real_download(filename, info_dict)
  File "/home/matze/build/youtube-dl/youtube_dl/downloader/external.py", line 43, in real_download
    self.get_basename(), retval))
  File "/home/matze/build/youtube-dl/youtube_dl/downloader/common.py", line 161, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 550, in report_error
    self.trouble(error_message, tb)
  File "/home/matze/build/youtube-dl/youtube_dl/YoutubeDL.py", line 512, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
  File "/usr/lib/python3.5/traceback.py", line 201, in extract_stack
    stack = StackSummary.extract(walk_stack(f), limit=limit)

Video does not download. Resulting in HTTP error 403 Forbidden. URL is wrong

The problem is described in the following line

https://cdn.video.playwire.com/21772/videos/4840492/https://config.playwire.com/21772/videos/v2/4840492/abr-non-hd.m3u8: Server returned 403 Forbidden (access denied)

The URL extracted does not lead to the video URL and the video does not download. Both concatenated URLs for themselves do not lead to the given video file.

yan12125 added a commit that referenced this issue May 26, 2016
Related: #9531
yan12125 added a commit that referenced this issue May 26, 2016
Related: #9531
yan12125 added a commit that referenced this issue May 26, 2016
Related: #9531
@yan12125 yan12125 closed this in 761052d May 26, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 26, 2016

Such videos will be correctly handled in the next version. Thanks for the report!

@snipem
Copy link
Contributor Author

@snipem snipem commented May 26, 2016

Thank you for fixing!

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