jesseward / plex-lastfm-scrobbler

Scrobble played audio items Last.FM from the Plex Media Server application.
MIT License
92 stars 13 forks source link

Duplicate Scrobbles #36

Closed craigeley closed 9 years ago

craigeley commented 9 years ago

Just got this script running, and I'm seeing duplicate scribbles. Generally running the defaults, thought I changed "localhost" to 127.0.0.1 in the URL of the config file, since I wasn't seeing any scrobbles. Not sure if that's even remotely related. Here's are some sections of the log, but it does this for every song: submits it twice.

2015-05-24 14:19:34,540 [43479] [plex_scrobble.lastfm scrobble] [INFO] submitting Brandon Flowers - Can't Deny My Love (The Desired Effect) to last.fm. 2015-05-24 14:19:34,540 [52292] [plex_scrobble.lastfm scrobble] [INFO] submitting Brandon Flowers - Can't Deny My Love (The Desired Effect) to last.fm. 2015-05-24 14:20:14,764 [52292] [plex_scrobble.plex_monitor parse_line] [INFO] Found played song and extracted library id '387' from plex log 2015-05-24 14:20:14,764 [52292] [plex_scrobble.plex_monitor monitor_log] [WARNING] Dupe detection : 387, not submitting 2015-05-24 14:20:14,799 [43479] [plex_scrobble.plex_monitor parse_line] [INFO] Found played song and extracted library id '387' from plex log 2015-05-24 14:20:14,799 [43479] [plex_scrobble.plex_monitor monitor_log] [WARNING] Dupe detection : 387, not submitting 2015-05-24 14:21:02,029 [52292] [plex_scrobble.plex_monitor monitor_log] [DEBUG] Possible log file rotation, resetting file handle (st_mtime=Sun May 24 14:20:02 2015) 2015-05-24 14:21:02,029 [43479] [plex_scrobble.plex_monitor monitor_log] [DEBUG] Possible log file rotation, resetting file handle (st_mtime=Sun May 24 14:20:02 2015) 2015-05-24 14:25:23,121 [43479] [plex_scrobble.lastfm scrobble] [INFO] submitting Brandon Flowers - Still Want You (The Desired Effect) to last.fm. 2015-05-24 14:25:23,792 [52292] [plex_scrobble.plex_monitor parse_line] [INFO] Found played song and extracted library id '389' from plex log 2015-05-24 14:25:23,792 [52292] [plex_scrobble.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://127.0.0.1:32400/library/metadata/389 2015-05-24 14:25:23,802 [52292] [plex_scrobble.lastfm scrobble] [INFO] submitting Brandon Flowers - Still Want You (The Desired Effect) to last.fm.

craigeley commented 9 years ago

I'm actually going to close this—I think the problem might have stemmed from the fact that my library was still being scanned when I was testing this yesterday. I suspect the logs where overwhelming the script and making things weird. Today the script is sending individual tracks as expected.