3 Commits

Author SHA1 Message Date
d48c57ca83 open-in-mpv: respect the player's executable config
config.yml allows to specify `executable` distinct from player name:
```
players:
  mpv:
    name: mpv
    executable: my-mpv-wrapper
    ...
```

before, the `executable` setting would be ignored:
```
$ open-in-mpv 'mpv:///open?url=https%3A%2F%2Fyoutu.be%2FdQw4w9WgXcQ'
2024/02/15 08:27:41 /usr/bin/mpv https://youtu.be/dQw4w9WgXcQ
```

after this patch, it's respected:
```
open-in-mpv 'mpv:///open?url=https%3A%2F%2Fyoutu.be%2FdQw4w9WgXcQ'
2024/02/15 08:27:53 /usr/local/bin/my-mpv-wrapper https://youtu.be/dQw4w9WgXcQ
```
2024-02-15 08:29:05 +00:00
Baldomo
410a3e8e6d Added explicit supported URL schemes matching for all players to reduce protocol abuse, added relevant section to README, added tests for new code 2022-12-30 01:32:08 +01:00
Baldomo
74987a4ba9 Full Go rewrite with WIP suppport for ther systems (Windows custom protocol handler), fixed #4, updated README 2021-07-28 14:09:20 +02:00