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

simulation of filename template issue #225

Closed
sivaramn opened this issue Nov 24, 2011 · 2 comments
Closed

simulation of filename template issue #225

sivaramn opened this issue Nov 24, 2011 · 2 comments

Comments

@sivaramn
Copy link

@sivaramn sivaramn commented Nov 24, 2011

$ ytube --version
2011.11.23

pgm aliased as ytube

I was trying to check what the output template should produce but I'm not sure why it doesn't output the filename

$ytube -s -o '%(stitle)s_%(id)s.%(ext)s' 'http://www.youtube.com/user/classxteam#g/p'
[youtube] Setting language
[youtube] user classxteam: Downloading video ids from 1 to 51
[youtube] user classxteam: Downloading video ids from 51 to 101
[youtube] user classxteam: Collected 83 video ids (downloading 83 of them)
[youtube] KV4-2yDY7ZE: Downloading video webpage
[youtube] KV4-2yDY7ZE: Downloading video info webpage
[youtube] KV4-2yDY7ZE: Extracting video information
[youtube] Kul-oCw4hj8: Downloading video webpage

Isn't it supposed to do 'title_KV4-2yDY7ZE.mp4' of the playlist to the std output? title should be replaced with whatever title is returned by youtube.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 24, 2011

-o just modifies the outputted filename, not the stdout. It couldn't possibly do so since at the moment when the message "Downloading video webpage" is generated, we haven't downloaded the video webpage containing the title yet.

You want the --get-filename option:

$ youtube-dl  -s -o '%(stitle)s_%(id)s.%(ext)s' 'http://youtube.com/user/classxteam' --get-filename
00017_KV4-2yDY7ZE.mp4
ClassX_Mobile_Kul-oCw4hj8.mp4
Information_Theory_A_Lecture_15_Part_6_X38RctVDofM.mp4
Information_Theory_A_Lecture_15_Part_5_Z-WMe7eiyDo.mp4
Information_Theory_A_Lecture_15_Part_4_ZtuQD2HFWNI.mp4
Information_Theory_A_Lecture_15_Part_3_fqwBlUFqE4U.mp4
...
@phihag phihag closed this Nov 24, 2011
@sivaramn
Copy link
Author

@sivaramn sivaramn commented Nov 29, 2011

got it. Thanks.

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.