mpv-player / mpv-player/mpv

sub-file-paths order

Open
#13,045 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

So I have 25 episodes of anime and 2 folders with 25 .ass files in each, "sr" and "ziggy" (with the same names as MKVs, but .ass).

I start mpv with mpv *.mkv --sub-file-paths=ziggy:sr and expect all "ziggy" subtitles to have smaller id than "sr" subtitles and be chosen by default. But it seems that subtitles are always sorted alphabetically and "sr/NAME.ass" are always added before "ziggy/NAME.ass".

Is there any way to change this behaviour? (Besides renaming subtitle directories)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command with mpv *.mkv --sub-file-paths=ziggy:sr, then trace the --sub-file-paths handling and subtitle ordering. Determine whether the requested directory priority is supported or needs a change; done means the ordering is controllable as requested or the behavior is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.