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

Feature request: Screenwave support #7039

Closed
ketsuban opened this issue Oct 1, 2015 · 4 comments
Closed

Feature request: Screenwave support #7039

ketsuban opened this issue Oct 1, 2015 · 4 comments

Comments

@ketsuban
Copy link

@ketsuban ketsuban commented Oct 1, 2015

SF Debris has switched from Blip to Screenwave, so I cannot use youtube-dl on it anymore. Fortunately the Javascript is reasonably easy to read; the mechanism for retrieving video URLs is as follows.

  1. Retrieve the source of the page (try http://sfdebris.com/videos/animation/transformerss1e01.php as a test case).
  2. Match the regex http://player[0-9]+.screenwavemedia.com/player.php?id=[^']+.
  3. Retrieve the source of the URL matched in step 2.
  4. Make a note of the value of vidid in the attributes map.
  5. Match the regex http://player[0-9]+.screenwavemedia.com/player.js.
  6. Retrieve the source of the URL matched in step 4.
  7. The sources list inside jwoptions.playlist contains the video URLs at decreasing levels of fidelity. thisObj.options.videoserver is a reference to an object declared earlier in the file; playerVidId is the value of vidid which was recorded in step 4.

Some of this errs on the side of trying not to take advantage of what may be coincidences and trying to minimise the possible necessity of future maintenance. For instance,

  • The value of vidid recorded in step 4 is the same as the id parameter of the script whose URL is matched in step 2.
  • There appears to be only one player server, player2.screenwavemedia.com, at the moment.
@ngld
Copy link
Contributor

@ngld ngld commented Oct 1, 2015

Thanks for your thorough research. However, youtube-dl already supports screenwavemedia links which means that only the first two steps need to be added.

My PR (linked above) adds support for SF Debris. Can you test it please?

@ketsuban
Copy link
Author

@ketsuban ketsuban commented Oct 1, 2015

Looks good to me on Python 3.4/Ubuntu. I don't intend to test Python 2 because as far as I'm concerned it's there purely for backwards compatibility.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 2, 2015

Screenwave is already supported by youtube-dl and http://sfdebris.com/videos/animation/transformerss1e01.php is processed by generic extractor just fine.

@dstftw dstftw closed this Oct 2, 2015
@Angsereg
Copy link

@Angsereg Angsereg commented Oct 8, 2015

Is there a chance that one of these two extractors could be updated to work with a page (coincidentally also at sfdebris.com (via channelawesome.com): http://channelawesome.com/the-terminator-sf-debris/ ?

While it works for the first video on the page, the second video is, seemingly, completely ignored. I ended up grabbing the download link for the first video via "youtube-dl -g", getting the video id from the page, changing the retrieved download link with the new video id, and then having wget grab the second video with the new url.

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.

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