Add watchCommand config option

watchCommand is specified as a list of strings. The first entry is the
application to run. The rest are arguments. Arguments don't need to be
quoted as the shell is not involved in running the command.
"{{vid}}" will be replaced with the Id of the video to watch.

The default command is still to call xdg-open with the YT URL
This commit is contained in:
Daniel Schulte 2020-11-26 19:30:26 +01:00
parent 3135764e5a
commit b4c4fb75c0
3 changed files with 898 additions and 6 deletions

View file

@ -2,5 +2,6 @@
"apiKey": "YOUR_API_KEY",
"extraHeaders": [
{"key": "x-extra", "value": "heder"}
]
],
"watchCommand": ["xdg-open", "https://youtube.com/watch?v={{vid}}"]
}