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

limit_rate does not limit rate when downloading with python #13401

Closed
Phantom1472 opened this issue Jun 16, 2017 · 8 comments
Closed

limit_rate does not limit rate when downloading with python #13401

Phantom1472 opened this issue Jun 16, 2017 · 8 comments

Comments

@Phantom1472
Copy link

@Phantom1472 Phantom1472 commented Jun 16, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.06.12
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

The issue is that the "limit_rate" argument to the youtube_dl library in python seems not to be working. exmaple code:
import youtube_dl
youtube_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!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 16, 2017

The name in Python API is ratelimit, not limit_rate.

@yan12125 yan12125 closed this Jun 16, 2017
@Phantom1472
Copy link
Author

@Phantom1472 Phantom1472 commented Jun 16, 2017

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.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 16, 2017

@Phantom1472
Copy link
Author

@Phantom1472 Phantom1472 commented Jun 16, 2017

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.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 16, 2017

@Phantom1472
Copy link
Author

@Phantom1472 Phantom1472 commented Jun 16, 2017

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.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 16, 2017

You did not read documentation carefully. It clearly states:

Most likely, you'll want to use various options. For a list of options available, have a look at youtube_dl/YoutubeDL.py.

@Phantom1472
Copy link
Author

@Phantom1472 Phantom1472 commented Jun 16, 2017

Oh, thanks, I did not see that line, sorry.

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.

None yet
3 participants
You can’t perform that action at this time.