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 new extractor #28903

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

Conversation

schnusch
Copy link

@schnusch schnusch commented Apr 28, 2021

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
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

This supersedes #28008 and therefore obsoletes sxvghd#1.

Closes #28008.

@schnusch schnusch force-pushed the doodstream branch 2 times, most recently from 01ab714 to bd9d5cb Compare April 30, 2021 16:51
auth_url = urljoin(url, auth_url)

webpage = self._download_webpage(auth_url, video_id, headers=referer)
final_url = webpage + ''.join([random.choice(string.ascii_letters + string.digits) for _ in range(10)]) + "?token=" + token + "&expiry=" + str(int(time.time() * 1000))
Copy link
Contributor

@rautamiekka rautamiekka Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to specify a list comprehension for ''.join(), a generator comprehension is faster anyway (implied inside parenthesis), and uses far less RAM.

sxvghd and others added 5 commits April 30, 2021 19:24
  * metadata
      * fetch and decrypt video title
          * implemented doodExe
      * add filesize and duration
      * removed description
      * use _og_search_thumbnail
  * remove User-Agent from HTTP headers because it is not needed
@dstftw
Copy link
Collaborator

dstftw commented May 4, 2021

Read coding conventions.

@schnusch
Copy link
Author

schnusch commented May 6, 2021

I am not sure what you mean specifically. Can you point me in a direction?

@bato3
Copy link
Contributor

bato3 commented May 24, 2021

If I'm remember, single quotes: "?token=" + token + "&expiry=" Check errors by flake8

@Nathan13888
Copy link

This is an interesting PR. Is this something that is being worked on still?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants