Skip to content

iina-cli --mpv-shuffle does not shuffle playlist #4434

@low-batt

Description

@low-batt

System and IINA version:

  • macOS 13.4
  • IINA 1.3.1

Expected behavior:
Executing iina-cli --mpv-shuffle ~/Movies plays files in random order as per the documented behavior of the mpv shuffle option.

Actual behavior:
The files in the directory are always played in the same order.

From a quick look at the code, it appears IINA is processing the directory itself and adding the files to the playlist one by one. Possibly if IINA passed the directory to mpv it would load the files and shuffle the playlist. If that is not feasible then IINA needs to recognize and implement this mpv option.


Steps to reproduce:

  • Put multiple video files into a directory
  • Start IINA using iina-cli, specifying --mpv-shuffle and the directory containing the video files
  • Click on Show Playlist Panel under the Playback menu
  • Take note of the order of the files in the playlist
  • Repeat
  • The same file starts playing and the playlist order has not changed
  • MPV does not have this problem.

How often does this happen?
Every time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions