Skip to content

pseudobabble/muse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. Muse
    1. Requirements
    2. Installation
    3. Notes
    4. Todo

Muse

Search for videos on Youtube, view them, and download their audio tracks.

This package contains an Emacs major mode `muse-mode`, and Rust cli.

❯ muse help
Muse 0
someone
Manage Youtube music

USAGE:
    muse <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    download
    help        Print this message or the help of the given subcommand(s)
    search
    view

Requirements

  • `geckodriver`
  • `ascii-image-converter`

Installation

  • Install `geckodriver`: `sudo apt install geckodriver`
  • Install `ascii-image-converter`: `sudo apt install ascii-image-converter`
  • Clone this repo and `cargo install –path .`
  • In Emacs, `M-x load-file` and then load `muse.el` in this repo
  • `M-x muse-search` and add the query, then press `d` on a video listed in the resulting buffer to download the audio track, `v` to view the video and its related videos in another buffer, `o` to open the video link in the system browser.

Notes

The `muse` cli does not manage the `geckodriver server`, that is responsibility of `muse-mode`. If you want to use the cli independently, start a geckodriver server with `geckodriver –port=4444`.

Todo

  • Handle errors gracefully
  • Allow the cli help to be printed without a `geckodriver` server
  • Add ’preview’ under `p`, slicing with https://unix.stackexchange.com/a/388148
    • Would be good to be able to see the video length
  • Stream video to terminal as ascii art under `w` (watch), on the view page
  • Add a command to go to the channel for a video, bound to `c`
  • Add a more sophisticated `transient` menu to control the download options
    • Have a `magit` style `transient` menu on `muse-mode` buffers
  • Add `Muse` implementations for other sources (Spotify, etc)
  • Add tests

About

Emacs major mode and Rust CLI to interact with video & music streaming services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published