You are not logged in.

#1 2010-01-21 02:28:34

Berticus
Member
Registered: 2008-06-11
Posts: 731

multi-user mpd scrobbler

It seems just about every scrobbler is system wide. So what do I do if I have multiple users? I tried using mpdscribble with some system wide configurations in /etc/mpdscribble.conf like the host, port, and log file, while user configurations (username and password) are in ~/.mpdscribble/mpdscribble.conf. Then I started the daemon, but it doesn't seem to update.

Which scrobbler would allow me to have multiple users scrobble?

Offline

#2 2010-01-21 11:32:48

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: multi-user mpd scrobbler

this can only work, if you start mpd as user with a user-config in ~/.mpdconf. Each mpd process must be running on a seperate port. Make mpdscribble monitor that port and all should be well.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2010-01-21 14:48:06

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: multi-user mpd scrobbler

Apparently, there already needs to be a working Internet connection before it scrobbles when the daemon is first launched.  Solve that with...

( until ping -W5 -c1 google.com &> /dev/null; do
    sleep 10
  done
  pidof mpdscribble &> /dev/null || mpdscribble
) &

...in your $HOME/.xinitrc or $HOME/.bash_profile or $XDG_CONFIG_HOME/openbox/autostart.sh, or whatever method you're using to launch applications at user log-in.

Also, try updating to mpdscribble 0.19.

# Contributor: Luiz Ribeiro <luizribeiro@gmail.com>

pkgname=mpdscribble
pkgver=0.19
pkgrel=1
pkgdesc="mpd client which submits track info to audioscrobbler."
url="http://mpd.wikia.com/wiki/Client:Mpdscribble"
arch=('i686' 'x86_64')
license="GPL"
depends=('libsoup')
makedepends=('pkgconfig')
backup=(etc/mpdscribble.conf)
install=$pkgname.install
source=(http://downloads.sourceforge.net/musicpd/mpdscribble-$pkgver.tar.bz2 \
        mpdscribble)

md5sums=('164443621660d268d98b4aaa249d0901'
         'f54c937c7b3ab8e4d39e4b903c2993fc')
build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$pkgdir install
  install -D -m755 ../../mpdscribble $pkgdir/etc/rc.d/mpdscribble
  mkdir -p $pkgdir/var/cache/mpdscribble
  touch $pkgdir/var/cache/mpdscribble/mpdscribble.cache
}

# vim:set ts=2 sw=2 et:

Last edited by Wintervenom (2010-01-21 14:52:08)

Offline

Board footer

Powered by FluxBB