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

When Downloading a Play List -O option fails to Expand in Some Cases #1915

Closed
sirinath opened this issue Dec 7, 2013 · 4 comments
Closed

Comments

@sirinath
Copy link

sirinath commented Dec 7, 2013

CMD script file (1st download started without a issue):


youtube-dl -U

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=PL23DE0292227250FA

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=PLlwuBpNY38y8n9N6_dgO6LJtKRenht1lU

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=UUQJ6ESCWQotBwtJm0Ff_gyQ

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=PL92CB0490FD400A21

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=PLBA48805EC25C0C64

youtube-dl -i -f mp4 -v -o "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" http://www.youtube.com/playlist?list=PL34979749519F0A1F

youtube-dl -i -f mp4 -v -o "%(uploader)s%(title)s-%(id)s.%(ext)s" http://www.youtube.com/watch?v=PVKC5FuGjsI

youtube-dl -i -f mp4 -v -o "%(uploader)s%(title)s-%(id)s.%(ext)s" http://www.youtube.com/watch?v=GfsStm5zkQ0

pause


C:\Downloads>youtube-dl -i -f mp4 -v -o "(playlist)s(title)s-(ext)s" http://www
.youtube.com/playlist?list=UUQJ6ESCWQotBwtJm0Ff_gyQ
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-i', '-f', 'mp4', '-v', '-o', '(playlist)s(title)
s-(ext)s', 'http://www.youtube.com/playlist?list=UUQJ6ESCWQotBwtJm0Ff_gyQ']
[debug] youtube-dl version 2013.12.04
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #1
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #2
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #3
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #4
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #5
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #6
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #7
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #8
[youtube:playlist] UUQJ6ESCWQotBwtJm0Ff_gyQ: Downloading page #9
[download] Downloading playlist: Uploads from Yuttadhammo Bhikkhu
[youtube:playlist] playlist 'Uploads from Yuttadhammo Bhikkhu': Collected 881 vi
deo ids (downloading 881 of them)
[download] Downloading video #1 of 881
[youtube] Setting language
[youtube] 42L0feZLsp4: Downloading video webpage
[youtube] 42L0feZLsp4: Downloading video info webpage
[youtube] 42L0feZLsp4: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #2 of 881
[youtube] 4MiBLF9pb40: Downloading video webpage
[youtube] 4MiBLF9pb40: Downloading video info webpage
[youtube] 4MiBLF9pb40: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #3 of 881
[youtube] L-JZ1eWwWLA: Downloading video webpage
[youtube] L-JZ1eWwWLA: Downloading video info webpage
[youtube] L-JZ1eWwWLA: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #4 of 881
[youtube] qdRUQWHg7ig: Downloading video webpage
[youtube] qdRUQWHg7ig: Downloading video info webpage
[youtube] qdRUQWHg7ig: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #5 of 881
[youtube] i2UwB-l6CGM: Downloading video webpage
[youtube] i2UwB-l6CGM: Downloading video info webpage
[youtube] i2UwB-l6CGM: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #6 of 881
[youtube] lJtfm-Ii4-U: Downloading video webpage
[youtube] lJtfm-Ii4-U: Downloading video info webpage
[youtube] lJtfm-Ii4-U: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #7 of 881
[youtube] ASePs8wkcto: Downloading video webpage
[youtube] ASePs8wkcto: Downloading video info webpage
[youtube] ASePs8wkcto: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #8 of 881
[youtube] U4K-5UMs2WY: Downloading video webpage
[youtube] U4K-5UMs2WY: Downloading video info webpage
[youtube] U4K-5UMs2WY: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #9 of 881
[youtube] EaA9a9HFPCY: Downloading video webpage
[youtube] EaA9a9HFPCY: Downloading video info webpage
[youtube] EaA9a9HFPCY: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #10 of 881
[youtube] ohMiaC9fVNk: Downloading video webpage
[youtube] ohMiaC9fVNk: Downloading video info webpage
[youtube] ohMiaC9fVNk: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #11 of 881
[youtube] eM-8DgJFiK0: Downloading video webpage
[youtube] eM-8DgJFiK0: Downloading video info webpage
[youtube] eM-8DgJFiK0: Extracting video information
downloads(title)s-(ext)s has already been downloaded
[download] Downloading video #12 of 881
[youtube] rJQF2dL8PeI: Downloading video webpage
[youtube] rJQF2dL8PeI: Downloading video info webpage
[youtube] rJQF2dL8PeI: Extracting video information

@jaimeMF
Copy link
Collaborator

jaimeMF commented Dec 7, 2013

The template must be "%(playlist)s-%(title)s.%(ext)s", you missed the %.

@jaimeMF jaimeMF closed this as completed Dec 7, 2013
@sirinath
Copy link
Author

sirinath commented Dec 8, 2013

I am trying to put thins into different directories as in the example:

Can also be used to download to
a different directory, for example with -o '/my/d
ownloads/%(uploader)s/%(title)s-%(id)s.%(ext)s'

Since I am in windows I changed / to \

@jaimeMF
Copy link
Collaborator

jaimeMF commented Dec 8, 2013

According to the output you put there are missing %, that's the reason it's not expanded. You can use / for downloading into directories.

@sirinath
Copy link
Author

sirinath commented Dec 8, 2013

I think I found the reason. In a batch file when in side quotes sometimes you do not need to escape % but sometime you need to escape it. I replaced it by %% then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants