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

[DoodStream] Add extractor from yt-dlp back-port #31003

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dirkf
Copy link
Contributor

@dirkf dirkf commented Jun 4, 2022

Boilerplate: mixed code, new extractor ## Please follow the guide below
  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense, except where:
  • I am not the original author of this code but it is in public domain or released under Unlicense (yt-dlp/yt_dlp/extractor/doodstream.py)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

This PR adds the DoodStreamIE extractor as originally proposed in #28008 and subsequently included in yt-dlc and yt-dlp.

The code is taken from the current yt-dlp extractor, adapted for the yt-dl platform, with these further fixes and improvements:

  • enforce vanilla UA Mozilla/5.0 to bypass CloudFlare blockage
  • extract from both embed (/e/) and player (/d/) pages to get additional metadata (duration, size, upload date)
  • raise error for Video not found title in the embed page
  • also recognise TLDs .so, .la, .pm, .sh, .ws, .one.

Other candidate TLDs are .com, .cx, or indeed [a-z0-9-]*.

Closes #28903.
Closes #28008.
Resolves #28883.
With suitable changes to the Generic extractor (eg, 7496a04 in reverse), would handle #29628.
Incorporates, closes #32979, thx @mp3butcher.

@scientiacoder
Copy link

I copy and paste the code locally, but it does not work. Any suggestions?

@mycodedoesnotcompile2
Copy link

mycodedoesnotcompile2 commented Nov 1, 2023

FYI, the Doodstream JDownloader plugin does work:
https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/src/jd/plugins/hoster/DoodstreamCom.java

Also, so far, the current domains belong to DoodStream and can be used to watch videos (cf. https://easylist-downloads.adblockplus.org/easylist.txt, https://board.jdownloader.org/showthread.php?p=526326):

doodstream.com
doodstream.co
dood.la
dood.pm
dood.re
dood.sh
dood.so
dood.to
dood.watch
dood.wf
dood.ws
dood.yt
doods.pro
dooood.com
dooood.co
ds2play.com

Could you then update this youtube-dl plugin according to these information ?

@reregaga
Copy link

Can you also add a poophd.com, poop.media? I don't know if this is a mirror for the doodstream.com or not, but it looks very similar.

@mp3butcher
Copy link

mp3butcher commented Jul 29, 2024

This extractor is not working...I have fixed it... Does it worth a pull request?

@syntaxsurge
Copy link

This extractor is not working...I have fixed it... Does it worth a pull request?

please add pull request

@mp3butcher
Copy link

#32979

dirkf and others added 2 commits November 29, 2024 14:11
* update tests
* send `Referer` when fetching media link

Co-authored-by: mp3butcher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants