Vibepy is a Python script for playing a random video from a YouTube channel or playlist.
- Python 3.6 or higher
- scrapetube
- mpv
- Clone the repository or download the source code
- Install the required dependencies
- Make the script executable using `chmod +x vibepy.py`
- Run the script using `./vibepy.py`
usage: vibepy.py [-h] [-i CHANNEL_ID] [-p PLAYLIST_ID] [-c] [-u] A script to play random youtube video from a given channel/playlist optional arguments: -h, --help show this help message and exit -i CHANNEL_ID, --channel_id CHANNEL_ID ID of the YouTube channel -p PLAYLIST_ID, --playlist_id PLAYLIST_ID ID of the YouTube playlist -c, --continuous If argument is present activates continuous playback mode -u, --update_cache If argument is present updates the cache of the videos for the given channel/playlist -nv, --no-video Play with only audio, no video
- To play a random video from a YouTube channel:
./vibepy.py -i <channel_id>
- To play a random video from a YouTube playlist:
./vibepy.py -p <playlist_id>
- To play a random video from a YouTube channel or playlist in continuous playback mode:
./vibepy.py -i <channel_id> -c ./vibepy.py -i <playlist_id> -c
- To update the cache of the videos for a given channel or playlist:
./vibepy.py -i <channel_id> -u ./vibepy.py -i <playlist_id> -u