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

Reverse download order #249

Closed
vertevero opened this issue Dec 14, 2011 · 8 comments
Closed

Reverse download order #249

vertevero opened this issue Dec 14, 2011 · 8 comments

Comments

@vertevero
Copy link

@vertevero vertevero commented Dec 14, 2011

I'm trying to download an entire channel and would like to be able to run but have it download in reverse order

youtube-dl -A -t -c https://www.youtube.com/user/smosh

Could you add a flag to download in reverse order so that the oldest video is 00001 instead of the newest?

@vertevero
Copy link
Author

@vertevero vertevero commented Dec 14, 2011

Um... Well, I decided to see if I could hack this feature into the code and was surprisingly successful. (This was my first bit of Python code that was more than just a batch script.)

So I just submitted a pull request.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 15, 2011

We're currently in the process of generalizing playlist handling across all IEs. I added a comment in your pull request.

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Jun 10, 2012

I received that feature request by email, here are the anoymized request and my reply:

Hello


Some films on youtobe is divided by parts and now I get it from last
to first, and i can't watch this film when its downloaded ;(.

i change
class YoutubePlaylistIE(InfoExtractor):
class YoutubeUserIE(InfoExtractor):

 To some thing like this and i get films divided by correct order :)

               video_ids.reverse()
               for id in video_ids:
                       self._downloader.download(['http://www.youtube.com/watch?v=%s' % id])
               return

Propably it's good idea to add some option for this.

best regards
Artur
Hello,
thank you for using youtube-dl.

There is quite some request for that feature, so I will add it soon.
However for an option like this to be general some code rafactoring is
needed (the IE have to return the videos list so that the downloader
can reverse the order). Otherwise, the reversing code would need to be
copied in all User/Search/Playlist IE, and that is quite suboptimal.

Follow
http://github.com/rg3/youtube-dl/issues/249
for updates. I will cross-post there this email soon.

Regards
@weedy
Copy link

@weedy weedy commented Sep 27, 2014

Why is this still not done?
Also dupe in #561

@tYGjQCsvVI
Copy link

@tYGjQCsvVI tYGjQCsvVI commented Nov 4, 2014

Poppin' in. I'd really like to start watching the first video while the next one is downloading, unfortunately, I can not.

@ryanmjacobs
Copy link

@ryanmjacobs ryanmjacobs commented Dec 22, 2014

Hey guys, this was implemented in ff815fe.

Just use:

$ youtube-dl --playlist-reverse https://www.youtube.com/user/smosh
@phihag phihag closed this Dec 22, 2014
@thomasbuckler
Copy link

@thomasbuckler thomasbuckler commented May 28, 2015

is there a way to download an entire channel with the oldest videos downloading first? --datebefore xxxxxxxx is too slow for this. theres 100s of thousands of recent videos that i dont want. only early videos.

@shillshocked
Copy link

@shillshocked shillshocked commented Dec 30, 2019

Just use the default all videos playlist for the channel and this flag, it should work as you want it.

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