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

Feature Request: Sort by date with correct placement in playlist when opening a file #125

Open
tinglycraniumplacidly opened this issue Aug 11, 2023 · 1 comment

Comments

@tinglycraniumplacidly
Copy link

The ls -1t | mpv playlist=- <file> method referenced in #68 doesn't quite work for me because, while the file that gets loaded first is the correct one, it doesn't load that file in the right place in the playlist. Essentially it loads file, then hops to the first (last modified) file in playlist, then second (last modified). Ideally, it would load the file, then the next file in date order from the file, etc.

The behavior I'm looking for would be similar to feh's -Smtime --start-at. mpv's --playlist-start= only takes a number. It gets a bit more difficult since mpv can play directories...

@jonniek
Copy link
Owner

jonniek commented Nov 22, 2023

Does sorting the playlist with default_sort=date-asc not produce the result you want?

That one uses mtime for the sorting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants