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

add destination folder to batch files #369

Closed
siamsites opened this issue Jul 2, 2012 · 4 comments
Closed

add destination folder to batch files #369

siamsites opened this issue Jul 2, 2012 · 4 comments

Comments

@siamsites
Copy link

Hello,

I am using youtube-dl to keep an offline copy of a bunch of channels and playlists. In order to update these, I need to run one job per playlist/channel, because I want them to be in different folders. At the moment I am using a script that runs individual instances of youtube-dl to download/update them one by one.

I would like to use the batch file like this:
/media/videos/youtube/PlayList1/ http://www.youtube.com/view_play_list?p=PlayList1
/media/videos/youtube/PlayList2/ http://www.youtube.com/view_play_list?p=PlayList2
/media/videos/youtube/PlayList3/ http://www.youtube.com/view_play_list?p=PlayList3
/media/videos/youtube/Channel1/ ytuser:Channel1
/media/videos/youtube/Channel2/ ytuser:Channel2
/media/videos/youtube/Channel3/ ytuser:Channel3

Then run it like this: "# youtube-dl -citw -a batchfile.txt"

This would make updating channels/playlists much easier ;)

I read somewhere that youtube-dl is wget for youtube... may I make a name suggestion? Rename youtube-dl command to be "yget" or "ytget" or "rg3t"... :)

@NeonLightning
Copy link

i'm lookin to do the same thing aswell but also am trying to make it so it makes the folders i tried setting mine to have
-o /path/to/vids/folder/%(uploader)s/$(upload_date)s - %(title)s.%(ext)s
but it says something about wrong encoding

@phihag
Copy link
Contributor

phihag commented Dec 8, 2012

@NeonLightning Please open a separate issue, and don't forget to include the whole and exact command line you're using. Also, why is there a dollar sign before upload_date?

As to the issue at hand: So you're essentially suggesting a playlist_name placeholder? That's certainly possible. youtube-dl is also curl for youtube, so why not rename it yurl? Basically, youtube-dl is a short name, and contains youtube, so basically everyone can infere (without even knowing wget/curl/aria ...) that it does something with youtube, and hopefully they can decode dl as download. Would you have found youtube-dl if it was named rg3t?

@siamsites
Copy link
Author

Yes, a playlist_name placeholder would be great :)

Agree on the naming... youtube-dl is self-explanatory.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Apr 22, 2013

@siamsites Since 2013.04.21 you can specify in the output template the playlist name (or id) with %(playlist)s.
So you could set your default template to /media/videos/youtube/%(playlist)s/%(title)s-%(id)s.%(ext)s, similar to what you want.

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from ytdl-org:master
@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants