34 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
Leonardo
07fc639b28 Merge pull request #20 from SuperSandro2000/config-default-scheme
Set default supported schemas when no config file is provided
2023-05-12 21:31:58 +02:00
Sandro Jäckel
c9bd2e4ea1 Set default supported schemas when no config file is provided 2023-05-12 21:01:42 +02:00
Baldomo
6d21e61624 Updated configuration locations in README, added issue and PR templates 2023-01-09 17:19:23 +01: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
e2a3cb1833 Set CGO_ENABLED=0 for all platforms, closes #8 2022-05-05 10:42:09 +02:00
Baldomo
953b4df0cf Fixed Makefile indentation (because of course it would happen at some point) 2022-01-28 19:09:26 +01:00
Baldomo
048044e001 Updated extension versions, added rules to Makefile for other platforms, added extra files in scripts/ dir 2022-01-28 19:05:52 +01:00
Leonardo
0a10849e20 Merge pull request #6 from sudofoobar/fix-open-this-page
Fix "Open this page in mpv" feature
2022-01-28 17:59:07 +00:00
sudofoobar
064a0975a4 Fix "Open this page in mpv" feature 2021-11-23 15:58:17 +09: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
Baldomo
6218f0de7a Fixed broken Makefile 2021-07-26 19:08:03 +02:00
Baldomo
821087a20e Updated README with links (and submitted Firefox extension to AMO) 2021-07-26 18:53:33 +02:00
Baldomo
78afbd9e5b Small restyle of README 2021-01-24 18:49:40 +01:00
Baldomo
1bf066ec7c Fully implemented flag overriding and player specification in players.hpp, fixed bugs and updated README 2021-01-24 18:44:12 +01:00
Baldomo
93f7bc29f3 Added list of supported players with flag overrides and checks for support, reformatted code, added .editorconfig 2021-01-20 20:36:44 +01:00
Baldomo
132a258a82 Minor code refactor, code is more consistent 2020-12-28 01:15:49 +01:00
Baldomo
99b9474f3b Moved alnum_to_hex to own unnamed namespace, moved documentation comments to class definitions and function bodies outside of definitions, reformatted code 2020-12-26 17:05:47 +01:00
Baldomo
9fedb03ceb Formatted code and added .clang-format, small refactors 2020-12-26 13:00:39 +01:00
Baldomo
8c2d69b05d Fixed small typos in README 2020-12-26 00:07:10 +01:00
Baldomo
1a798efcd5 Fixed wrong required rule for make install 2020-12-25 22:34:31 +01:00
Baldomo
c6db44ea7c Major refactor of code: removed dependency on libcurl, added url.hpp, moved everything in the oim namespace, updated readme, added more documentation comments 2020-12-25 22:31:41 +01:00
Baldomo
98de7307d1 Fixed context menu, reworked and restyled option page, updated Makefile 2020-12-22 19:20:22 +01:00
Baldomo
47c646ce51 Updated extension to support using any mpv-compatible player and custom flags, simplified javascript, added query_value overload with fallback string 2020-12-19 13:51:53 +01:00
Baldomo
8659ddeeee Finally added enqueue functionality to extension options, fixed flawed selector in options, modified main.cpp so enqueuing when mpv is closed open a new instance 2020-12-12 18:00:19 +01:00
Baldomo
1a454608ab Fixed typos in README, added TODO in mpvopts.hpp 2020-12-07 18:58:25 +01:00
Baldomo
94861f36bb Prevented potential key/value parsing bug in qurey_value(string, string), updated README 2020-12-04 11:04:49 +01:00
Baldomo
81c10e755c Added custom flags and custom video player to extension settings and generted mpv:// URLs, updated README 2020-12-04 10:52:58 +01:00
Baldomo
86d8ea4f75 Total c++ rewrite 2020-07-16 19:27:02 +02:00
Baldomo
f43e16dc1f Added query option checking/defaults in main, refactored main.rs, added protocol installation to main 2020-01-24 11:53:30 +01:00
Baldomo
3a6ef28119 open-in-mpv.desktop is now hidden from menus 2019-08-09 16:46:26 +02:00
Baldomo
e0d4c446db Added license, split code in lib.rs and main.rs, simplified methods, added build.rs (to package webexts, WIP) 2019-07-25 16:39:10 +02:00
Baldomo
6dbd77ffc1 Updated install-protocol.sh to use xdg-mime, added Chrome extension (courtesy of IINA's extension) 2019-07-04 09:13:03 +02:00
Baldomo
a37de57a39 Initial commit: main.rs, base project layout 2019-07-02 15:51:02 +02:00