1
0
Fork
You've already forked vibepy
0
Vibepy is a Python script for playing a random video from a YouTube channel or playlist.
  • Python 100%
Find a file
2023年04月19日 20:20:30 +02:00
LICENSE Added channel/playlist cacheing, added continuous random playback. Expanded the README and added LICENSE file. 2023年04月15日 23:50:18 +02:00
README.org Added option to launch mpv without the video. 2023年04月19日 20:20:30 +02:00
vibe.py Added option to launch mpv without the video. 2023年04月19日 20:20:30 +02:00

Vibepy

Vibepy is a Python script for playing a random video from a YouTube channel or playlist.

Dependencies

  • Python 3.6 or higher
  • scrapetube
  • mpv

Installation

  1. Clone the repository or download the source code
  2. Install the required dependencies
  3. Make the script executable using `chmod +x vibepy.py`
  4. Run the script using `./vibepy.py`

Usage

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

Examples

  • 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