-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
base: master
Are you sure you want to change the base?
Conversation
01ab714
to
bd9d5cb
Compare
youtube_dl/extractor/doodstream.py
Outdated
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)) |
There was a problem hiding this comment.
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.
* 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
Read coding conventions. |
I am not sure what you mean specifically. Can you point me in a direction? |
If I'm remember, single quotes: |
This is an interesting PR. Is this something that is being worked on still? |
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])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:
What is the purpose of your pull request?
Description of your pull request and other information
This supersedes #28008 and therefore obsoletes sxvghd#1.
Closes #28008.