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

Please add --sort-by option #2405

Open
davidhedlund opened this issue Feb 18, 2014 · 8 comments
Open

Please add --sort-by option #2405

davidhedlund opened this issue Feb 18, 2014 · 8 comments
Labels

Comments

@davidhedlund
Copy link

@davidhedlund davidhedlund commented Feb 18, 2014

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
Copy link
Contributor

@phihag phihag commented Feb 18, 2014

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
Copy link
Author

@davidhedlund davidhedlund commented Feb 19, 2014

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
Copy link

@kopurando kopurando commented Feb 5, 2015

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
Copy link
Author

@davidhedlund davidhedlund commented Apr 28, 2015

@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
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 29, 2015

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

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented May 1, 2015

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

@jaimeMF jaimeMF added the request label May 10, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 10, 2015

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 davidhedlund changed the title Add --sort-by option Please add --sort-by option May 20, 2015
@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Jun 6, 2015

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

@ytdl-org ytdl-org locked and limited conversation to collaborators Jul 21, 2017
@ytdl-org ytdl-org deleted a comment from Yaouza Jul 21, 2017
@ytdl-org ytdl-org deleted a comment from Yaouza Jul 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.