Strip quotation marks from per-player arguments (#226)

This commit is contained in:
et0h 2021-03-03 23:17:16 +00:00
parent b50ea46d7d
commit 5c3982f313
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ class MpvPlayer(BasePlayer):
continue
if "=" in argToAdd:
(argName, argValue) = argToAdd.split("=", 1)
if argValue[0] == '"' and argValue[-1] == '"':
argValue = argValue[1:-1]
else:
argName = argToAdd
argValue = "yes"