Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
limit_rate does not limit rate when downloading with python #13401
Comments
|
The name in Python API is |
|
Oh, sorry about that. Where can i find the list of all the names in the Python API? i couldn't find it in the documentation. |
|
FYI: Almost all field names can be found in the following places:
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/YoutubeDL.py#L134
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/downloader/common.py#L29
…On Fri, Jun 16, 2017 at 4:44 PM, PhantomGitHub ***@***.***> wrote:
Oh, sorry about that.
Where can i find the list of all the names in the Python API? i couldn't
find it in the documentation.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13401 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2RGXJt_hS7b7X263j7zYkEiCXDPJ6Jks5sEkBqgaJpZM4N8LRu>
.
|
|
Thanks for the reference, but the correction you suggested does not seem to be working. the line:
Seems to be doing the same thing. I got way more that 1MBps with that line as well. |
|
Well, it should be:
youtube_dl.YoutubeDL({'ratelimit': 50000}).download(['dQw4w9WgXcQ'])
The value should be a number.
…On Fri, Jun 16, 2017 at 4:53 PM, PhantomGitHub ***@***.***> wrote:
Thanks for the reference, but the correction you suggested does not seem
to be working. the line:
youtube_dl.YoutubeDL({'ratelimit': '50K'}).download(['dQw4w9WgXcQ'])
Seems to be doing the same thing. I got way more that 1MBps with that line
as well.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13401 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2RGYYldRLb-Vyg1uoj1xzFXIjFzJWEks5sEkKigaJpZM4N8LRu>
.
|
|
Hmm... thanks. It seems like the documentation is a bit lacking in this subject. I assumed it was the same format from the command line interface. |
|
You did not read documentation carefully. It clearly states:
|
|
Oh, thanks, I did not see that line, sorry. |
What is the purpose of your issue?
The issue is that the "limit_rate" argument to the youtube_dl library in python seems not to be working. exmaple code:
import youtube_dlyoutube_dl.YoutubeDL({'limit_rate':'50K'}).download(['dQw4w9WgXcQ'])The code above preforms download at very high rates, higher than 50Kbps. On my internet connection it was higher than 1MBps, that's more that 20 times the wanted rate.
What am i missing?
Thanks!