mplayer-last.fm-scrobbler

Created: 2011-07-15 23:10
Updated: 2018-06-15 07:44
c++

Readme.md

MPlayer last.fm Scrobbler {#readmeTitle}

A command line application that plays audio files with MPlayer and scrobbles them to last.fm. Supports mp3, mp4, flac and ogg. {#description}

Usage

mplayerlastfm.sh <glob> play_directory.sh

Prerequisites

Install

  • run make.sh to compile taginfo
  • run install.sh (might need sudo) to install mplayerlastfm.sh as /usr/local/bin/mplayerlastfm and play_directory.sh as /usr/local/bin/play_directory.sh
    or Install mplayerlastfm.sh in your $PATH e.g '/usr/local/bin/m' for easy use, also put taginfo in your $PATH

mplayerlastfm.sh

Set these variables before running mplayerlastfm.sh to set your preferences.

LASTFM_PLAYER        default mplayer
TAGINFO              default taginfo
LASTFM_SUBMIT        default lastfmsubmit
SCROBBLER_ECHO       default true
DISPLAY_TRACK_INFO   default true

play_directory.sh

Allows the user to choose which directory to play using mplayerlastfm.sh. if the directory contains 4 directories, album 1, album 2, album 3, album 4 then running play_directory.sh will result in:

1) Album 1    3) Album 3  
2) Album 3    4) Album 4
#? 

Where the user type the number e.g 3 to pick Album 3. It play recursively all files in the directory.

Set these variables before running play_directory.sh to set your preferences.

MPLAYER_LASTFM default mplayerlastfm
MPN_DIR        defualt $HOME/Music

MPN_DIR is directory to play from.

Issues

  • q' interrupts only playback of current file; press and hold ctrl-C to skip.
    Even if you skip file immediately with Enter or 'q' it will scrobble

Deamon

  • There is also a version that works like a deamon in the Deamon directory, it has a lot more prerequisites but is more efficient and has extra features and is less tested see Readme.md in the Daemon directory for details.
  • Allows going to the previous track.
  • Allows saving volume settings.
  • Allow printing of current track info.

MediaKeys (Mac OSX only)

See MediaKeyHelper to control MPlayer with the mediakeys (F7, F8, F9) on a mac keyboard.

Licence

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License

Authors

  • Bilal Hussain
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more