Giter Club home page Giter Club logo

ytui's Introduction

YTUI (I'm not sure if the name is taken already)

This is a TUI client for youtube (largely based on my other project, twitch-tui-client).

I made this because the existing youtube clients didn't really meet my expectations.

This is a work in progress, you'll currently run into todo!()s in a few places:

  • Channels
  • Playlists

Config

This program has a fairly detailed config file (it's src/config.rs, minor programming knowledge would help), everything before line 53 is prelude stuff (could be moved to a different file).

You can find information of individual configs in the file, next to the configs.

By default, it uses mpv for playing videos, and ffplay for playing streams, since they're the most convenient for both.

Running

This is not on crates.io, so you will have to download it directly from the repo and run:

$ cargo run # Optionally `--release`

Controls

Basically the same as twitch-tui-client, but has n to see 'next' videos (recommendations)

match key {
  'Q' => quit,
  UpArrow | 'J' => up,
  DownArrow | 'K' => down,
  PageUp => page up,
  PageDown => page down,
  RightArrow | 'L' => match current_selection {
    Header => Show category, if there is one,
	Video => Play with specified player,
	Transcript => Show transcript,
	CommentSection => Show comments,
	Comment => Show replies, if any,
	Channel | Paylist => todo!(),
  },
  LeftArrow | 'B' => go back,
  'H' => go back to home,
  'S' | '/' => open search box, until enter key is pressed,
  'N' => View recommendations
  'R' => refresh page,
}

ytui's People

Contributors

bolshoytoster avatar

Watchers

 avatar

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.