Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gaesa/audio.yazi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

audio.yazi

Preview audio cover and fallback to metadata on Yazi.

audio-cover audio-metadata

Note

The latest main branch of Yazi is required at the moment.

Requirements

Ensure that you have the following installed and available in your system's PATH:

  • MediaInfo (used for cover detection and metadata generation)
  • FFmpeg (used for cover extraction)

Installation

Automatically:

ya pack -a "gaesa/audio"

Or manually:

# Linux/macOS
git clone https://github.com/gaesa/audio.yazi.git ~/.config/yazi/plugins/audio.yazi

# Windows
git clone https://github.com/gaesa/audio.yazi.git %AppData%\yazi\config\plugins\audio.yazi

Usage

Add this to your yazi.toml:

[plugin]
prepend_preloaders = [
    { mime = "audio/*", run = "audio" },
    { name = "*.m4a", run = "audio" },
]

prepend_previewers = [
    { mime = "audio/*", run = "audio" },
    { name = "*.m4a", run = "audio" },
]

Thanks

Thanks to sxyazi for the PDF previewer code, on which this previewer is based on.

About

A plugin of yazi used to preview audio files

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Lua 100.0%