Git Product home page Git Product logo

ytrand's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.