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

output template for download list #3745

Closed
Rush2088 opened this issue Sep 14, 2014 · 8 comments
Closed

output template for download list #3745

Rush2088 opened this issue Sep 14, 2014 · 8 comments

Comments

@Rush2088
Copy link

@Rush2088 Rush2088 commented Sep 14, 2014

when using --batch-file is there a way to specify a customized name(ie Output template) for each file.
Hence I can give a meaning full name for each downloaded file.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 14, 2014

There is no such feature, but I'd be hesitant to add them without more context. The -o option is very powerful. Can you elaborate with an example of how you want your files to be named?

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Sep 14, 2014

If I use the manual url method instead of batch file, I would name the output file as follow
youtube-dl -o "Episode 73 Aug15-2014" http://vimeo.com/105761794
youtube-dl -o "Royal Show Aug20-2014" https://www.youtube.com/watch?v=CfsWeyNx624
Note: the list consists of over 20 urls with a customized file names
suggestion:
What If there is a feature in the batch file add an optional output template in that way one can prepare a batch file in following format.
http://vimeo.com/105761794 "Episode 73 Aug15-2014"
https://www.youtube.com/watch?v=CfsWeyNx624 "Royal Show Aug20-2014"

@phihag
Copy link
Contributor

@phihag phihag commented Sep 14, 2014

Oh, so the filenames bear no relation to the titles of the videos. Why aren't you simply invoking youtube-dl multiple times? Batch files are usually used for automatic input (say, a script that downloads the newest videos of a channel every day), but the source of your videos seems to be a human.

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Sep 15, 2014

Yes,at the moment i'm using matlab to run the batch commands to call up youtube-dl.
It would be good, if there's an optional parameter within youtube-dl batch file like, --file-name

@phihag
Copy link
Contributor

@phihag phihag commented Sep 15, 2014

Well, then who enters the names into matlab? And why are you writing a batch file in Matlab, instead of calling youtube-dl directly?

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Sep 15, 2014

That site has file names in proper order, with an embeded dailymotion and vimeo videos.I use matlab to scrape a webpage with 2nd level links.Hence I can feed youtube-dl readable urls and file names extracted from the webpage.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 15, 2014

Well, then it looks like youtube-dl should be fed that site in the first place, shouldn't it? Can you name an example URL?

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Oct 3, 2014

I found a way around this.
Step 1> Save url and output file names is a CSV file.
Step 2> type the following in, cmd prompt

for /f "delims=; tokens=1,2" %a in (urls.csv) do @youtube-dl -i -o "%b" "%a"
@Rush2088 Rush2088 closed this Oct 3, 2014
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.