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 can i change download location and point it to my local server am using python #11597

Closed
deangelo200 opened this issue Jan 4, 2017 · 1 comment

Comments

@deangelo200
Copy link

@deangelo200 deangelo200 commented Jan 4, 2017

How can i change download location and point it to my local server
`ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '128', # 192 or 128<< this will decrease file size
}],
}
#with youtube_dl.YoutubeDL(ydl_opts) as ydl:
#ydl.download([url])

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=True)`

@deangelo200 deangelo200 changed the title How can i change download location and point it to my local server How can i change download location and point it to my local server am using python Jan 4, 2017
@deangelo200
Copy link
Author

@deangelo200 deangelo200 commented Jan 4, 2017

i got it
ydl_opts = {
'format': 'bestaudio/best',
'outtmpl': '/Users/deangeloalmeus/Public/%(title)s.%(ext)s'

@deangelo200 deangelo200 closed this Jan 4, 2017
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
1 participant
You can’t perform that action at this time.