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

WebOfStories Playlist: youtube-dl Finds 0 Videos #16914

Closed
Mohammed90 opened this issue Jul 5, 2018 · 2 comments
Closed

WebOfStories Playlist: youtube-dl Finds 0 Videos #16914

Mohammed90 opened this issue Jul 5, 2018 · 2 comments

Comments

@Mohammed90
Copy link

@Mohammed90 Mohammed90 commented Jul 5, 2018

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

Before submitting an issue make sure you have:

  • 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

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

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:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'http://www.webofstories.com/playAll/oliver.sacks']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.04
[debug] Python version 2.7.15 (CPython) - Darwin-17.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1
[debug] Proxy map: {}
[WebOfStoriesPlaylist] oliver.sacks: Downloading webpage
[download] Downloading playlist: Oliver Sacks (Scientist)
[WebOfStoriesPlaylist] playlist Oliver Sacks (Scientist): Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: Oliver Sacks (Scientist)

Description of your issue, suggested solution and other information

The playlist here contains 360 videos, yet youtube-dl cannot find them. According to the supportedsites.md, WebOfStories playlists are supported. In fact, youtube-dl is able to download a single video, but not videos of playlists.

@mzfr
Copy link

@mzfr mzfr commented Aug 6, 2018

@dstftw After investigating a bit about this issue I found out that in /extractor/webofstorie.py#L137 we are trying to find a pattern that have /playAll/<playlist_id> but if you'll look in the html source of the page there is no such pattern.
My guess is they use js for playing video as the link of the page stays same after clicking on any of the video in the list.

I have tested this on playAll/donald.knuth and also the list mentioned in the issue.

@Mohammed90
Copy link
Author

@Mohammed90 Mohammed90 commented Aug 6, 2018

I'm thinking maybe they changed their streaming URLs? Either way, I've curled the page into an offline HTML file, and compared notes with their online webpage. Here are the two scenarios:

  • If the "browser" supports the video tag, then the page will contain 2 video tag items:

    1. One for mobile (and backup for browsers that don't support video tag), where the source of the video material can be found at the src attribute of: video#playerForMobile > source

    2. The other location is at the src attribute of: video.jw-video.jw-reset

  • If the browser doesn't support the video tag, then the media source can be found at the location described in number 1 above.

The code needs to start from the first URL to learn the general structure of the media location. Here's an example URL:
https://d2o4yifwfks2gg.cloudfront.net/stories/50035/1.mp4

Notice 1.mp4 at the end? It'll just go sequentially from there to the index of the last video in the playlist. The total count of videos in a playlist is the number of tags that have the class .playListItem .

@Mohammed90 Mohammed90 mentioned this issue Aug 17, 2018
5 of 9 tasks complete
@dstftw dstftw closed this in dd88fd6 Aug 26, 2018
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.

2 participants
You can’t perform that action at this time.