Skip to content

awsms/mpd-meh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpd-meh

A small helper for music collectors: mark tracks as ignored (= meh'd) so they’re automatically skipped, without deleting anything from your library.

What it does

  • Adds a sticker mehd=1 to tracks
  • Watches MPD player events and skips meh'd tracks
  • Lists or bulk-marks tracks by MPD queries
  • Deletes meh'd tracks from disk

Build

go build -ldflags "-s -w"

Config

On first run it creates ~/.config/mpd-meh/config.

Required MPD config:

  • sticker_file must be enabled in mpd.conf
  • music_directory is needed for the delete command

Minimal mpd-meh config example:

host=127.0.0.1
port=6600
password=

# paths (optional)
mpd_db_path=
sticker_db_path=
mpd_config=
music_directory=

If mpd_config is empty, it will try ~/.config/mpd/mpd.conf automatically.

Usage

mpd-meh meh
mpd-meh meh --file "path/to/file.mp3"

mpd-meh unmeh
mpd-meh unmeh --file "path/to/file.mp3"
mpd-meh unmeh --file "vgm_chiptune/ps1/*"

mpd-meh list
mpd-meh mark search artist "Some Artist"

mpd-meh delete
mpd-meh delete --file "vgm_chiptune/ps1/*"

Notes:

  • delete removes files from disk; MPD's database updates after a rescan.
  • Globs match across / and are only applied to meh'd URIs.

systemd

A sample systemd unit is included: mpd-meh.service, to run mpd-meh as a daemon (will skip any meh'd playing track).

About

ignore tracks in MPD without messing up your music collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages