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
- Get and setup lastfmsubmitd
- Install taglib
- mplayer
Install
- run
make.sh
to compiletaginfo
- run
install.sh
(might need sudo) to installmplayerlastfm.sh
as/usr/local/bin/mplayerlastfm
andplay_directory.sh
as/usr/local/bin/play_directory.sh
or Installmplayerlastfm.sh
in your$PATH
e.g '/usr/local/bin/m' for easy use, also puttaginfo
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 theDeamon
directory, it has a lot more prerequisites but is more efficient and has extra features and is less tested seeReadme.md
in theDaemon
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