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

Optionally allow provision of starting and ending point for playlists in batch file #13701

Open
tjeulink opened this issue Jul 22, 2017 · 3 comments

Comments

@tjeulink
Copy link

@tjeulink tjeulink commented Jul 22, 2017

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 2017.07.15. 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 2017.07.15

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 (couldn't find any but i didn't know how to word it well enough so sorry if its a double issue)

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

What i would really like is to have the ability to specify per playlist in the batchfile what video to start and end with. it shouldn't be a mandatory option but it should be a given one. it could be implemented like this (imagine this is the batch-file.txt:

https://www.youtube.com/watch?v=HIXzJ3Rz9po
https://www.youtube.com/watch?v=_gCwCOhMcog&list=PLD6B6473ACF32C59D
https://www.youtube.com/watch?v=HjuHHI60s44&list=PL6gx4Cwl9DGCkg2uj3PxUWhMDuTw3VKjM --playlist-start 5
https://www.youtube.com/watch?v=FVOmSC2fCaE&list=PLY-M-dfKubpeXJHxjYoarxYSBPUd8u63M --playlist-end 20
https://www.youtube.com/watch?v=b5NmtmNwMgU&list=PLW5y1tjAOzI2ZYTlMdGzCV8AJuoqW5lKB --playylist-start 5 --playlist-end 20
https://www.youtube.com/watch?v=v_1zB2WNN14&list=PL9ooVrP1hQOH3SvcgkC4Qv2cyCebvs0Ik --playlist-items 1,3,5,7,9

what this would do is:
url 1: download single video normally
url 2: download full playlist
url 3: download playlist starting at video 5
url 4: download playlist till video 20
url 5: download playlist from video 5 till video 20
url 6: download video's 1, 3, 5, 7 and 9 from the playlist

another thing that would be nice is to be able to specify if it should only download the playlist from the video linked. for example (imagine another batch file):

https://www.youtube.com/watch?v=LLKzoG_Db4g&index=4&list=PLbzoR-pLrL6rr4Yn46TYDee--jzHhqdfQ --arbitrary-command-feel-free-to-think-of-something

what this would do is:
download video 4 and every video after it.

this last one would be mainly usefull for me, but i figured that if i was going to do a suggestion it would be better to suggest the whole package to make a completer suggestion. Hope this was clear enough!

ps. i love its current state too, its amazing.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 22, 2017

Syntax proposal is ambiguous since space is a valid URL character.

@tjeulink
Copy link
Author

@tjeulink tjeulink commented Jul 22, 2017

it was more to illustrate what i meant than as a set idea that should be implemented that way :)

@hseg
Copy link

@hseg hseg commented Apr 15, 2019

Note that "<>\^{|}` are forbidden in URIs, so they could be used as separators between the URI and the associated parameters. Or we could go the aria2 route and use a syntax like

URI
  param-1
  param-2
URI
  param-j
  param-k

Just my two cents.

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
3 participants
You can’t perform that action at this time.