User talk:Montague

From ArchWiki
Jump to: navigation, search

Some notes about my edits to the mpdscribble section:

  1. Relative file paths did not work for me, seems one must use absolute file paths for mpdscribble.log, etc.
  2. Also, seems like url = http://post.audioscrobbler.com/ is not optional; I get the following error if I don't set it: ** ERROR **: Key file does not have key 'url'... aborting...
  3. When the journal option is placed anywhere but in one of the [scrobblers] sections (i.e [last.fm] or [libre.fm] section), mpdsrcribble does not cache tracks played during a network interruption (see the man page -- SCROBBLERS section, near the end). I tested for this behavior with both the mpdscribble package in "community" and mpdscribble-git in "aur" (I'm on Arch x86_64 if it matters, fully updated). If you have a different behavior on your installation, please edit the wiki accordingly.
  4. While one could use the same file for both journals [in case one uses both last.fm and libre.fm], I feel it makes more sense to use two distinct files -- each scrobbler stores its own journal, independent of each other. This is not so much for situations when your own network may be down, but for cases when only one of the websites is unreachable for whatever reason... This way mpdscribble will only cache tracks for the one unreachable website and, when communication is re-established, will only submit the un-scrobbled tracks to that one website, thus avoiding submitting the same tracks twice to the other website that had no connection problems.
    • ...but then again I may have misunderstood the way caching/journaling work in mpdscribble, or I may have misunderstood the man page... In any case I could not test this since I cannot "bring down" last.fm of libre.fm (I don't have that kind of power!), I can only bring down my own network, and when I do, both websites are unavailable to me, so I do not know how mpdscribble would do caching/journaling in case only one of the websites was malfunctionning. I suppose I could test this with iptables or the likes and restrict myself access to one of the websites, but I'm feeling lazy right now... Anyway, make edits as you see fit if I am wrong about the caching/journaling behavior of mpdscribble.
  5. The mpdscribble package in "community" installs the file /etc/mpdscribble.conf but not /etc/mpdscribble.conf.example; the mpdscribble-git package in "aur" does the opposite; but with either package, the "/etc/mpdscribble.conf{.example}" file seems to be outdated and not in line with the man page or with the instructions in the wiki. This is no big deal I guess since the wiki does not refer to this file, but pacman does refer to it when installing mpdscribble, which is a bit confusing and misleading (for beginners like myself)...
  6. I'm unsure if the [mdpscribble] section header is necessary (the man page only says "the name 'mdpscribble' is reserved"), but I tried with and without the [mpdscribble] section header name, and the logs and everything else worked just fine; any clarification about what "reserved" means would be appreciated.

For example, on my system, this ~/.mpdscribble/mpdscribble.conf:

[mpdscribble]
verbose = 2
sleep = 1
log = /home/montague/.mpdscribble/mpdscribble.log

[last.fm]
url = http://post.audioscrobbler.com/
username = montague
password = Fp0pee82hCp8CEvq6th9teEhqtpp2a58
journal = /home/montague/.mpdscribble/lastfm.journal

[libre.fm]
url = http://turtle.libre.fm/
username = montague
password = 9CevFeF2E0v58p8q2C5F0CEqp8ehe2Ft
journal = /home/montague/.mpdscribble/librefm.journal

works just as nicely as this ~/.mpdscribble/mpdscribble.conf (only the first line differs):

verbose = 2
sleep = 1
log = /home/montague/.mpdscribble/mpdscribble.log

[last.fm]
url = http://post.audioscrobbler.com/
username = montague
password = Fp0pee82hCp8CEvq6th9teEhqtpp2a58
journal = /home/montague/.mpdscribble/lastfm.journal

[libre.fm]
url = http://turtle.libre.fm/
username = montague
password = 9CevFeF2E0v58p8q2C5F0CEqp8ehe2Ft
journal = /home/montague/.mpdscribble/librefm.journal

Montague 08:53, 16 February 2011 (EST)