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

mpv: Cannot open file '': No such file or directory #302

Open
h-banii opened this issue Feb 22, 2024 · 0 comments · May be fixed by #303
Open

mpv: Cannot open file '': No such file or directory #302

h-banii opened this issue Feb 22, 2024 · 0 comments · May be fixed by #303

Comments

@h-banii
Copy link

h-banii commented Feb 22, 2024

mpv gives this warning when there are no audio tracks and/or no subtitles. (ex: "allanime: citrus")

[file] Cannot open file '': No such file or directory
Failed to open .
Can not open external file .
[file] Cannot open file '': No such file or directory
Failed to open .
Can not open external file .

This happens because the --audio-files and --sub-files options are empty mpv --audio-files= --sub-files=, so it says it can't open the file "" (empty).

The options above are added only when audio_tracks and subtitles are not None, but it does not take into consideration the case when it's an empty list [].

A possible solution would be

- if audio_tracks is not None:
+ if audio_tracks:
@h-banii h-banii linked a pull request Feb 22, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant