carlo01092 / ytrand

Youtube playlist video randomizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ytrand

Stuck at your youtube's hunderds to thousands videos of "Watch later" playlist?

Don't know which video to start watching

Start decluttering your playlist by randomizing what to watch one video at a time

Opens video at chrome's incognito tab by default

Prerequisites

  • yt-dlp - For downloading playlists
  • jq - Formatting json database

Setup

  • fill your playlist ids in playlist.txt

Usage

  • Updates all playlist to the database (db.json)

  ytrand -Update
  • Update only watch later and liked videos playlist (naming refers from playlist.txt)

  ytrand -Update "watch_later","liked"
  • randomly select a video from all playlist

  ytrand
  • randomly select a 5 minute (or less) video from all playlist

  ytrand -minutes 5
  • randomly select a video from watch later and liked videos playlist (naming refers from actual youtube's playlist name)

  ytrand "Watch later","Liked videos"
  
  # or a 5 minute (or less) video
  ytrand "Watch later","Liked videos" 5
  
  #alternative syntax (with command parameter name)
  ytrand -playlist "Watch later","Liked videos" -minutes 5
  • Show all playlist & their number of videos

  ytrand -Status
  
  # with a 5 minute (or less) videos
  ytrand -Status -minutes 5
  
  # from watch later and liked videos playlist with a 5 minute (or less) videos
  ytrand -Status "Watch later","Liked videos" 5
  ytrand -Status -playlist "Watch later","Liked videos" -minutes 5

About

Youtube playlist video randomizer


Languages

Language:PowerShell 100.0%