darkhz / invidtui

A TUI based Invidious client
MIT License
196 stars 6 forks source link

suggestion: copy video URL to clipboard #13

Closed elig0n closed 2 years ago

elig0n commented 2 years ago

this can be useful for opening a video in browser, downloading it, sharing it, etc... preferably or separately with current time

darkhz commented 2 years ago

This can be somewhat tedious to implement, due to the following reasons:

For now, I think you can save your playlist in invidtui to a m3u8 file, and then access the urls from there. If you have any suggestions to tackle this issue, let me know.

ghost commented 2 years ago

And something similar to the behavior of newsboat macros? In newsboat when I click ",," in a feed it opens directly in my browser.

elig0n commented 2 years ago

For one, a general video/playlist entry information popup where the video URL/id is shown (among other things) can tackle this, by letting the user copy it with the mouse/tmux selection.

I also found that I can copy the URL off mpv (via an extension script) and although that is a direct video file URL the youtube ID is part of URL queries

darkhz commented 2 years ago

@elig0n can you show the extension script used to copy the URL off mpv? It would be useful to know how the implementation works. And yes, the popup method is a good suggestion, I'll implement that.

elig0n commented 2 years ago

@elig0n can you show the extension script used to copy the URL off mpv? It would be useful to know how the implementation works. And yes, the popup method is a good suggestion, I'll implement that.

I use https://github.com/Eisa01/mpv-scripts/blob/master/scripts/SmartCopyPaste.lua which supports mac linux and windows and many customization and copy/paste options but there are others as well