ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.74k stars 9.98k forks source link

Please add --sort-by option #2405

Open davidhedlund opened 10 years ago

davidhedlund commented 10 years ago

Please add a new option, --sort-by. For example --sort-by views

That way I can get significant high amount of like/dislike ratings

YouTube API "orderby" can be found here: https://developers.google.com/youtube/2.0/developers_guide_protocol?hl=en

phihag commented 10 years ago

Can you elaborate what this option would be for? I.e. what would the difference be between youtube-dl --sortby views BaW_jenozKc and youtube-dl BaW_jenozKc?

I'm assuming you want this feature either for playlists or for search. For playlists, that's reasonable, although the key would then be view_count. If you want the feature for search, however, an option is not the way to go, because we cannot possible enumerate and sort all search results. Instead, we would then modify the search keyword. Which of these is it?

davidhedlund commented 10 years ago

It is for "ytsearch", example:

youtube-dl "ytsearch:Talamasca - Overload" --sort-by views # which in version 2015.03.03.1 gives: Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: no such option: --sort-by

kopurando commented 9 years ago

Any progress with this request? Would be nice to download only most popular videos from a channel, i.e. start downloading with --sort-by view_count and most watched videos would be downloaded first, then simply manually interrupt once had enough.. Thanks!

davidhedlund commented 9 years ago

@phihag

I need this feature for a free youtube-dl software that I develop. Can you please add it?

Issue is still present in youtube-dl version 2015.04.28.

jaimeMF commented 9 years ago

@davidhedlund I may sound a bit rude, but you should read this FAQ entry.

davidhedlund commented 9 years ago

@jaimeMF I'm not sure if I've missed something. Can you please tell me what's on your mind?

jaimeMF commented 9 years ago

That entry says:

Feel free to bump the issue from time to time by writing a small comment ("Issue is still present in youtube-dl version ...from France, but fixed from Belgium"), but please not more than once a month

you posted twice in less than two days, that won't magically get the feature implemented. We only work on youtube-dl during our free-time and we don't get payed, so we give priority to issues/features we're interested or that require small effort. I don't know about others, but I'm not working to implement this feature, you can write a pull request or pay someone to do it though.

I can understand that from the user perspective it may sometimes look like if we didn't pay attention to some issues, but it's just that we have limited time.

davidhedlund commented 9 years ago

@jaimeMF Thank you for putting the "request" label on this Issue.