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 · 4 comments

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.

@cordo246
Copy link

In my environment
I get sorted by name no matter which I specify

mpv --script-opts=default_sort=name-asc
or
mpv --script-opts=default_sort=date-asc

Is it just my environment?

@jonniek
Copy link
Owner

jonniek commented Jul 26, 2024

Can you provide details of your environment?

@cordo246
Copy link

cordo246 commented Aug 3, 2024

I've been struggling with this for months, please help me find a solution.

--
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Screenshot from 2024-08-03 19-03-30

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

3 participants