agentcooper / Telik

macOS app to track YouTube channels and playlists
https://apps.apple.com/en/app/telik/id6453161265
MIT License
109 stars 0 forks source link

Add option to open in custom player #7

Closed sermelipharo closed 1 year ago

sermelipharo commented 2 years ago

Currently all options to open videos requires to bring up browser window. How about adding option to enter custom uri-scheme/shell command/etc. or just support for different players, e.g. iina

agentcooper commented 2 years ago

@sermelipharo Yeah, I think it is a good option. Do you have an example command that would start a YouTube video in IINA? Do you have other apps in mind?

sermelipharo commented 2 years ago

I guess as we're on macOS there will be enough just to use pattern open -a $APPNAME $URL, e.g. open -a IINA https://youtu.be/ask2wLNeAQg

iina, yt-dlp, mps-youtube -> mpv

nicohansi commented 1 year ago

I would also love a feature like this.

agentcooper commented 1 year ago

I implemented this in version 1.9.

It is not possible to keep app sandbox and allow custom shell commands, so only custom URLs are supported. For IINA you can use iina://weblink?url=$URL.

If you want to run a custom shell command, you can create a shortcut that runs the command and then use shortcut URL: https://support.apple.com/en-gb/guide/shortcuts/apd624386f42/6.0/ios/16.0.

Feel free to reopen if you have any issues or comments.