This project is bash script to play videos from YouTube using rofi and mpv.
-
Rofi is a window switcher, Application launcher and dmenu replacement
-
mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.
inspired by 'rofi_mpvtube' from elenapan@github I added the possibility to save all videos of a channel as a playlist. So you can navigate in playlist with rofi and select/search a video to play
copy rofi_tube
to a folder in your $PATH
Ex:
cp rofi_tube ~/.bin
config files in ~/.config/rofi_tube
.
channels.list
(file): list to save all you favorite channelsplaylists
(dir): save a playlist with all videos from a channel (urls, titles and some other info)
rofi_tube
Without params this will show all channels in you playlist. You can grab one and mpv will play all videos from this channel. But if channel has a lot of videos you will notice that it takes a lot of time to load and play mpv. In this case you can save a playlist with all videos. You will wait only fist time to download. After you will seach localy
rofi_tube --playlist
open rofi menu to select a channel. After will create a playlist with ak videos of this channel. Now you can search for a video or play a set of videos
rofi_tube --random
if you want to play all videos form a channel in random mode
if you have any problem or sugestion open a issue.
sorry for my english. It's a working in progress! LoL
=)