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

Wishlist: --download-missing #9234

Closed
etnoy opened this issue Apr 18, 2016 · 5 comments
Closed

Wishlist: --download-missing #9234

etnoy opened this issue Apr 18, 2016 · 5 comments

Comments

@etnoy
Copy link

@etnoy etnoy commented Apr 18, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.13. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.04.13

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

I am extremely grateful for youtube-dl and it integrates extremely well into my Plex setup that allows me to watch long YouTube playlists via offline Plex syncing on my devices.

I have read the documentation and tried to work this feature out, but as far as I know, the following feature is not implemented: automatic downloading of missing playlist episodes.

The goal is to have youtube-dl being called from a cron script for each playlist that I am watching where I can make youtube-dl go through the playlist and download missing episodes (usually new episodes added at the end of the playlist). The script could then be called daily, which downloads episodes, and these episodes are then in turn synced by Plex to my mobile devices.

Strictly speaking, this feature already exists, but it hammers YouTube and appears to re-download the entire playlist. I believe that if I did this from cron, the excessive traffic would cause YT do block me in some way. Also, I am aware of --playlist-start, however I don't see a way to make a script know which number to give to youtube-dl.

The wish list is then
youtube-dl --download-missing

Please let me know if this can be done in some way already, or if already exists (but I can't find it). Thanks!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 18, 2016

--download-archive should fit your need.

@yan12125 yan12125 closed this Apr 18, 2016
@etnoy
Copy link
Author

@etnoy etnoy commented Apr 18, 2016

Thanks for replying quickly. I was not aware of this usage of download-archive, it was not obvious from the documentation. Is there a quick way to append all existing video ID:s of my downloaded videos, or should I go ahead and call youtube-dl again on all playlists I've downloaded so far (>1000 videos)? Thanks again!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 18, 2016

should I go ahead and call youtube-dl again on all playlists I've downloaded so far (>1000 videos)?

Unfortunately yes. You can also create an archive.txt manually. It's format is straightforward:
<site_name> <video_id>.

youtube BaW_jenozKc
youtube UxxajLWwzqY
@etnoy
Copy link
Author

@etnoy etnoy commented Apr 18, 2016

Awesome, thanks. I'll probably generate the archive file from a shell script. Keep up the good work!

@etnoy
Copy link
Author

@etnoy etnoy commented Apr 18, 2016

For future googlers who find this page: I used the following command to download all video id:s of my playlist:

youtube-dl --ignore-config -s --get-id <playlist> >> archive

and then I used my favorite text editor (vim) to add youtube to the beginning of each line. Worked like a charm!

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.