open-dynaMIX / simple-mpv-webui

A web based user interface with controls for the mpv mediaplayer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

script-opts=webui-collections in mpv.conf is not working

francwalter opened this issue · comments

commented

Hallo

In issue #343 I noticed that I tried to put the collections path into the mpv.conf and this wouldnt work. But I made the error, that I didnt read the whole thing, that I need to add "--script-opts=" as mentioned in the Readme, under Options.
As parameter it works indeed (if I add --script-opts):

mpv --script-opts=webui-collections="C:\Users\f\Desktop\Filme" mymovie.mkv

Now I can check the content of that path with the api/collections:

https://192.168.0.161:8080/api/collections/c%3a%5cusers%5cf%5cdesktop%5cfilme

and as return I get the whole folders and subfolders under this directory.
But when I put the same in mpv.conf as:

script-opts=webui-collections="c:\users\f\desktop\filme"

it doesnt work, despite there are no errors thrown :(
I tried different writings in mpv.conf, all without success, e.g. (I uncommented one by one line):

# script-opts=webui-collections="C:\\Users\\f\\Desktop\\Filme"
# script-opts=webui-collections="C:\Users\f\Desktop\Filme"
# script-opts=webui-collections="c:\\users\\f\\desktop\\filme"
# script-opts=webui-collections="c:/users/f/desktop/filme"
# script-opts=webui-collections='c:/users/f/desktop/filme'
# script-opts=webui-collections='C:\\Users\\f\\Desktop\\Filme'
# script-opts=webui-collections='C:\Users\f\Desktop\Filme'
# script-opts=webui-collections='C:/Users/f/Desktop/Filme'

What could I possibly do wrong, or what is here not working?
Thanks, frank

PS.: This is with simple-mpv-webui 3.0.0 and mpv 2.0 on Windows 10

commented

OH!
I forgot to test this one:

script-opts=webui-collections="c:\users\f\desktop\filme"

which means the path is still (?) case sensitive!
But this is not the same issue, its a Windows issue only :(
And as only Windows is case insensitive but unix like OS are not, I think there is nothing to do here but to check the case in Windows.
Close that issue then.
Thank.