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

Save A Play List file for Media Players if Downloading a Playlist #1852

Closed
sirinath opened this issue Nov 29, 2013 · 6 comments
Closed

Save A Play List file for Media Players if Downloading a Playlist #1852

sirinath opened this issue Nov 29, 2013 · 6 comments

Comments

@sirinath
Copy link

@sirinath sirinath commented Nov 29, 2013

Is it possible to save a some standard playlist formats for media downloaded from a play list also place the videos in a directory having the playlist name by default. Also a HTML file with the playlist. This can be helpful in downloading lecture series in which the title is just the topic with no lesson number info.

Also ability to ignore already existing downloads.

If given multiple URLs the ability only download items once if they are common.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 30, 2013

I'll try to unpack the requests here, but I'll probably. In the future, please file multiple issues, one for each separate request. Make sure to explain what you are doing, and why the desired option would fix your problem.

Writing out a playlist for all downloaded videos, or an HTML file, seems like a great idea. In a pinch, however, you can simply use an output template like

-o '%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s'

Then, to play the desired playlist in vlc (or any other media player), simply run vlc PLAYLISTNAME/*.

By default, youtube-dl will skip already existing files, and this will work even if a video is named twice:

$ youtube-dl BaW_jenozKc BaW_jenozKc 
[youtube] Setting language
[youtube] BaW_jenozKc: Downloading video webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[download] Destination: youtube-dl test video ''_ä↭-BaW_jenozKc.mp4
[download] 100% of 1.90MiB in 00:02
[youtube] BaW_jenozKc: Downloading video webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[download] youtube-dl test video ''_ä↭-BaW_jenozKc.mp4 has already been downloaded
@sirinath
Copy link
Author

@sirinath sirinath commented Nov 30, 2013

Thanks. Will this work even if the file was downloaded to a different directory? Or names with a different -o name?

@phihag
Copy link
Contributor

@phihag phihag commented Nov 30, 2013

No, it will only work if the file has the same name. If you only want to download a video once though (but be careful: it will for example only be present in one of two playlists containing it), use the --download-archive option.

@phihag phihag closed this Nov 30, 2013
@sirinath
Copy link
Author

@sirinath sirinath commented Nov 30, 2013

The current naming default is this: %(playlist_index)s-%(title)s-%(id)s.%(ext)s

@sirinath
Copy link
Author

@sirinath sirinath commented Nov 30, 2013

Will --download-archive option prevent already downloaded items not to download again?

I want to rename already existing downloads to the suggested format. How do I do this?

@sirinath
Copy link
Author

@sirinath sirinath commented Nov 30, 2013

I have downloaded both of the Scala tutorial lists into 1 directory. Large number of files exit for both with also some part files. How can I sort this?

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.