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

Error while executing via batch file #794

Closed
ajaytvpm opened this issue Apr 19, 2013 · 8 comments
Closed

Error while executing via batch file #794

ajaytvpm opened this issue Apr 19, 2013 · 8 comments

Comments

@ajaytvpm
Copy link

@ajaytvpm ajaytvpm commented Apr 19, 2013

My .bat file

echo on
youtube-dl.exe -o '%(title)s.%(ext)s' pEKvDvcqV0I
echo on

While executing, this goes like youtube-dl.exe -o '(ext)s' pEKvDvcqV0I. Title part is not coming properly. So output is not coming as I expect.
But when I run the same from command line, it is working fine.

Please help.

Thanking you

Ajay

@phihag
Copy link
Contributor

@phihag phihag commented Apr 19, 2013

Thank you for reporting this issue. I'm not sure what you mean by "goes like" or "is not coming properly". What do you expect, and which precise output do you get? Can you add a logfile or a screenshot?

@ajaytvpm
Copy link
Author

@ajaytvpm ajaytvpm commented Apr 19, 2013

Thank you for your reply. 

Please create a DOS batch file using windows notepad with the following code  save the file as yt.bat  in C:
Then go to C:\ and run yt.bat and see it is working properly.

echo on
youtube-dl.exe -o '%(title)s.%(ext)s' pEKvDvcqV0I
echo on

regards

Ajay


From: Philipp Hagemeister notifications@github.com
To: rg3/youtube-dl youtube-dl@noreply.github.com
Cc: ajaytvpm ajay_tvpm@yahoo.co.in
Sent: Friday, April 19, 2013 6:45 PM
Subject: Re: [youtube-dl] Error while executing via batch file (#794)

Thank you for reporting this issue. I'm not sure what you mean by "goes like" or "is not coming properly". What do you expect, and which precise output do you get? Can you add a logfile or a screenshot?

Reply to this email directly or view it on GitHub.

@phihag
Copy link
Contributor

@phihag phihag commented Apr 19, 2013

Sorry, if it's working properly, than what is your issue?

@ajaytvpm
Copy link
Author

@ajaytvpm ajaytvpm commented Apr 19, 2013

See the output.

youtube-dl.exe -o '%(title)s.%(ext)s' pEKvDvcqV0I


[youtube] Setting language
[youtube] pEKvDvcqV0I: Downloading video webpage
[youtube] pEKvDvcqV0I: Downloading video info webpage
[youtube] pEKvDvcqV0I: Extracting video information
←[0;33mWARNING:←[0m unable to extract uploader nickname
[download] Destination: '(ext)s'
[download] 100.0% of 4.12M at  103.85k/s ETA 00:00


See the destination.

rgds


From: Philipp Hagemeister notifications@github.com
To: rg3/youtube-dl youtube-dl@noreply.github.com
Cc: ajaytvpm ajay_tvpm@yahoo.co.in
Sent: Friday, April 19, 2013 7:41 PM
Subject: Re: [youtube-dl] Error while executing via batch file (#794)

Sorry, if it's working properly, than what is your issue?

Reply to this email directly or view it on GitHub.

@phihag
Copy link
Contributor

@phihag phihag commented Apr 19, 2013

Thanks, that clears it up. According to http://www.robvanderwoude.com/escapechars.php , you must escape % with %% in batch files, even in quotes. We should however turn off the color codes (←[0;33m) if the terminal doesn't support them, which seems to be the case with cmd on Windows.

@ajaytvpm
Copy link
Author

@ajaytvpm ajaytvpm commented Apr 19, 2013

Thanks. I tried with %% too.  but failed.


From: Philipp Hagemeister notifications@github.com
To: rg3/youtube-dl youtube-dl@noreply.github.com
Cc: ajaytvpm ajay_tvpm@yahoo.co.in
Sent: Friday, April 19, 2013 8:11 PM
Subject: Re: [youtube-dl] Error while executing via batch file (#794)

Thanks, that clears it up. According to http://www.robvanderwoude.com/escapechars.php , you must escape % with %% in batch files, even in quotes. We should however turn off the color codes (←[0;33m) if the terminal doesn't support them, which seems to be the case with cmd on Windows.

Reply to this email directly or view it on GitHub.

@phihag
Copy link
Contributor

@phihag phihag commented Apr 19, 2013

Again, can you elaborate how it failed? Sorry, but without a precise error description, it's virtually impossible for us to fix your problem.

jaimeMF added a commit that referenced this issue Apr 23, 2013
@ajaytvpm
Copy link
Author

@ajaytvpm ajaytvpm commented Apr 23, 2013

that is working now.
thank you

Ajay


From: Philipp Hagemeister notifications@github.com
To: rg3/youtube-dl youtube-dl@noreply.github.com
Cc: ajaytvpm ajay_tvpm@yahoo.co.in
Sent: Friday, April 19, 2013 8:47 PM
Subject: Re: [youtube-dl] Error while executing via batch file (#794)

Again, can you elaborate how it failed? Sorry, but without a precise error description, it's virtually impossible for us to fix your problem.

Reply to this email directly or view it on GitHub.

@phihag phihag closed this May 5, 2013
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
2 participants
You can’t perform that action at this time.