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

Multiple URLs in Single Line Broke in 2013.12.4 #1916

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

Multiple URLs in Single Line Broke in 2013.12.4 #1916

sirinath opened this issue Dec 7, 2013 · 4 comments

Comments

@sirinath
Copy link

@sirinath sirinath commented Dec 7, 2013

Following command

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 http://www.youtube.com/playlist?list=PLlwuBpNY38y8n9N6_dgO6LJtKRenht1lU http://www.youtube.com/playlist?list=UUQJ6ESCWQotBwtJm0Ff_gyQ http://www.youtube.com/playlist?list=PL92CB0490FD400A21 http://www.youtube.com/playlist?list=PLBA48805EC25C0C64http://www.youtube.com/playlist?list=PL34979749519F0A1F

Starts the 1st playlist but "%(uploader)s%(playlist)s%(playlist_index)s-%(title)s-%(id)s.%(ext)s" expansion fails somewhere in between like in #1915

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 7, 2013

Could you please post the extact output where it fails and the first lines of the output (the [debug] .. lines)?
From the information you posted I guess it's a problem in the template, sometimes you write %(..)s and others \%(..)s, only the first one will work.

@sirinath
Copy link
Author

@sirinath sirinath commented Dec 8, 2013

\ means directory

@sirinath sirinath closed this Dec 8, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Dec 8, 2013

There is no need to resort to backslashes on Windows, slashes work just fine. Note that backslashes in the template should not be harmful ('\\%s' % 'a' works fine, for example), but that depends on how you pass them in (i.e. do they get interpreted by someone else before.

Since you have closed the issue, I assume you have found the problem yourself. Feel free to share it though. Note that in order for us to help you with this issue, you must post the complete output of youtube-dl when called with the -v option.

@sirinath
Copy link
Author

@sirinath sirinath commented Dec 8, 2013

There is a problem the how % is handled in quotes in the command processor. There are instances that CMD treads the text between % as a variable and replace this with a null string. This does not happen very often through. Now I always escape % even within quotes.

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.