@ seanfilidis: Yeah, in comparison to to the original config file it seems that you messed up the syntax of your entries...for example backslash instead of slash or using '' if necessary. That's probably why the script couldn't successfully parse your config. Sorry that I can't give you more specifics since I'm not used to Python or the used code itself.
@ s-jw: Thanks for your work! I was always looking for a server based solution to scrobble my music with Plex.
But I'm on a Synology NAS and have some trouble with the config file too. It doesn't matter what I enter for the location of the PMS log file (should be /volume1/Plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log). The script always falls back to the Linux default path (/var/lib/plexmediaserver/...). I tried to alter your code a little bit but it still falls back to the default value. I am not really familiar with Linux or Python so maybe I am doing something more or less obvioulsy wrong. Any help would be appreciated.
The plex-lastfm-scrobble log always says:
2014-10-07 11:58:50,844 [22899] [main ] [DEBUG] config : mediaserver_log_location -> /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log 2014-10-07 11:58:50,845 [22899] [main ] [DEBUG] config : session -> /root/.config/plex-lastfm-scrobbler/session_key 2014-10-07 11:58:50,845 [22899] [main ] [DEBUG] config : mediaserver_url -> http://localhost:32400 2014-10-07 11:58:50,845 [22899] [main ] [DEBUG] config : log_file -> /tmp/plex_scrobble.log 2014-10-07 11:58:50,846 [22899] [main ] [DEBUG] config : cache_location -> /tmp/plex_scrobble.cache 2014-10-07 11:58:50,846 [22899] [main main] [INFO] starting log monitor thread. 2014-10-07 11:58:50,847 [22899] [main cache_retry] [INFO] starting cache_retry thread. 2014-10-07 11:58:50,847 [22899] [plex_scrobble.plex_monitor monitor_log] [ERROR] Unable to read log-file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log. Shutting down.