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

How to limit download to specific extensions #8837

Closed
moiseyo opened this issue Mar 12, 2016 · 3 comments
Closed

How to limit download to specific extensions #8837

moiseyo opened this issue Mar 12, 2016 · 3 comments

Comments

@moiseyo
Copy link

@moiseyo moiseyo commented Mar 12, 2016

I'd like to put in my python code restriction to files with extensions mp4 and avi

What option ot need to add to option dictionary

before line

ydl = YoutubeDL(ydl_opts)

Thank you

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 12, 2016

'format': 'best[ext=mp4]/best[ext=avi]'

@dstftw dstftw closed this Mar 12, 2016
@moiseyo
Copy link
Author

@moiseyo moiseyo commented Apr 5, 2016

My settings

ydl_opts['format']= ['best[ext=mp4]/best[ext=avi]']

Moisey O

moiseyoys@gmail.com
[image: linkedinbutton] https://www.linkedin.com/in/oysgeltm
The view changes only for the leading dog.

On Sat, Mar 12, 2016 at 9:58 AM, Sergey M. notifications@github.com wrote:

'format': 'best[ext=mp4]/best[ext=avi]'


Reply to this email directly or view it on GitHub
#8837 (comment).

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 5, 2016

It should be a string but not a list.

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.