Baldomo / open-in-mpv

Simple web extension to open videos in mpv
GNU General Public License v3.0
119 stars 7 forks source link

open-in-mpv: respect the player's `executable` config #26

Closed uninsane closed 9 months ago

uninsane commented 9 months ago

Description

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

a user might want executable to be respected for any number of reasons:

Type of change

Please delete options which are not relevant.

Checklist

Baldomo commented 9 months ago

Looks good to me. LGTM

uninsane commented 9 months ago

thank you for tagging a new release with this so quickly!

uninsane commented 9 months ago

oh, the release process doesn't seem to update the version field in manifest.json to match the git tags though. it's still pinned to 2.0.1 (extension/Firefox/manifest.json, extension/Chrome/manifest.json, scripts/Info.plist). not sure it really matters for anything outside of e.g. fielding bug reports though.

Baldomo commented 9 months ago

That's intended. That version number only concerns the extension, which has not been updated in any way.