davidchalifoux / kaput-cli

The unofficial CLI client for Put.io - Kaput lets you manage your Put.io account from the comfort of your terminal!
https://kaput.sh/
MIT License
68 stars 7 forks source link

Play - new feature request to play videos using mpv. #38

Closed joshkerr closed 7 months ago

joshkerr commented 1 year ago

It would be nice to be able to type:

kaput files play ID

and have kaput launch mpv to start playing the requested video. Seems like an easy feature to add. You can reuse the download URL you already generate via "kaput files URL".

If you pass it a file, it plays the file. If you pass it a folder, it generates a playlist and plays the files in the folder that are video files.

davidchalifoux commented 1 year ago

This is a good suggestion!

I haven't heard of MPV before so I'll need to do some research, but it sounds very feasible.

I'm not sure if generating a playlist is possible because I'm pretty sure the generated links expire, but I'll look into it.

davidchalifoux commented 7 months ago

@joshkerr I added the play command in the latest version, please update and let me know how it goes!

I still don't think generating playlists will work because IIRC the generated links expire.

joshkerr commented 7 months ago

Thanks, works great. Appreciate you adding that.