mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.11k stars 642 forks source link

Copy item url on Android (from Termux). #761

Open ZaxonXP opened 6 years ago

ZaxonXP commented 6 years ago

Currently "mpsyt" allows to copy item url using pyperclip, which does not work on Android.

However from Termux there is a way to set/get the content of the clipboard using the following commands:

termux-clipboard-get termux-clipboard-set

Suggestion:

It would be nice to add a settings like clipboard_command which could be set to a program which should be run in order to set the clipboard. For example (termux):

set clipboard_command termux-clipboard-set

My Environment

OS: Android 6.0.1, CyanogenMod 13.0.2 mpsyt version : 0.2.7.1 notes : released 6 July 2016 pafy version : 0.5.3.1 (youtube-dl backend) youtube-dl version : 2018.01.14 Python version : 3.6.4 (default, Jan 7 2018, 03:53:53) [GCC 4.2.1 Compatible Android Clang 5.0.300080 ] Processor : Machine type : armv7l Architecture : 32bit, Platform : Linux-3.4.0-cyanogenmod-g68aff08-armv7l-with-libc sys.stdout.enc : UTF-8 default enc : utf-8 Config dir : /data/data/com.termux/files/home/.config/mps-youtube env:TERM : xterm-256color env:LANG : en_US.UTF-8

pekcheey commented 3 years ago

just saying that it is pretty trivial to add termux support to pyperclip.

https://github.com/asweigart/pyperclip/issues/205 <-- I'd a patch here that is working for me.