jesseward/plex-lastfm-scrobbler

Track play not recognized

duncanbeevers opened this issue · 8 comments

I'm finding my plays are not being recognized/scrobbled.
Here's a portion from my PMS log for one of the tracks in question.

https://gist.github.com/duncanbeevers/d5d4d756d96ce53008e5

It doesn't seem to conform to the play-recognition regular expression here

@duncanbeevers thanks for the report.

A couple questions

  • what version of PMS and which platform (osx, linux?)
  • what client are you using the play this file?
  • would you mind playing through 2 songs in full, and capture the PMS logs and pass those along.

thanks!

I'm running PMS 0.9.9.14.531-7eef8c6 on a Netgear ReadyNAS 312 running RAIDiator OS 6.1.8 (the stock ReadyNAS OS) which is a Debian variant.

I'm playing tracks through the web interface.

I've updated the original gist with a much bigger chunk of the logs from the same period around the original report I posted.

https://gist.github.com/duncanbeevers/d5d4d756d96ce53008e5

The tracks played are:

/data/All/Music/Kiko/Kiko - Midnight Magic (GoodLife, 2001)/Kiko - Midnight Magic - 02 - Monique.mp3
/data/All/Music/Jamiroquai/A Funk Odyssey/Jamiroquai - Twenty zero one.mp3
/data/All/Music/Claude VonStroke - Beware of the Bird (2007 Limited Edition) [V0]/Disc 2/04 Beware of the Bird (Justin Martin Remix).mp3

Thanks for posting the additional logging data. It appears as though your client is using the plex universal transcoder and not the legacy transcoder. Until your bug report i wasn't aware of this functionality ;-) But found the following via google -> https://support.plex.tv/hc/en-us/articles/200250377-Transcoding-Media "Old and Universal Transcoder").

Based on your logs, there doesn't appear to be a clean way to gauge when a song is played . But i could likely use the following log entry and scrobble at the start of track

Sep 02, 2014 19:29:34 [0x7fa5bb7fe700] DEBUG - Request: [192.168.1.97:60756] GET /music/:/transcode/universal/start.mp3?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F13084&mediaIndex=0&partIndex=0&maxAudioBitrate=350&protocol=http&session=5f5pqjq4wtr9t3xr&offset=0&X-Plex-Client-Identifier=5cbbrvgdz8semi&X-Plex-Product=Plex+Web&X-Plex-Device=OSX&X-Plex-Platform=Chrome&X-Plex-Platform-Version=37.0&X-Plex-Version=dev&X-Plex-Device-Name=Plex+Web+(Chrome)&X-Plex-Username=duncanbeevers 

"GET /music/:/transcode/universal/start.mp3" along with "metadata%2F13084" fairly unique to grab the start of a new song object.

BTW, I am also running OSX with Chrome 37.0, any idea on how to enable "universal" transcoding from the web client? I can give it a whirl.

I don't think it's an option in the client, but just a combination of client capability and a new enough server version. You might try setting the playback quality option in the client so that the media stream needs to be transcoded rather than being piped through as direct playback.

@duncanbeevers , i have added a work around to the universal-transcoder branch (https://github.com/jesseward/plex-lastfm-scrobbler/archive/universal-transcoder.zip) . I haven't tested against a live PMS instance, but the implementation is as noted above.

  • pulled universal-transcoder
  • re-ran python setup.py install
  • verified config was preserved
  • killed and restarted plex-scrobble.py
2014-09-03 23:20:53,396 [5501] [plex_scrobble.plex_monitor parse_line] [INFO] Found played song and extracted library id '2595' from plex log 
2014-09-03 23:20:53,396 [5501] [plex_scrobble.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/2595
2014-09-03 23:20:54,851 [5501] [plex_scrobble.lastfm scrobble] [INFO] submitting Sparque - Let's Go Dancing to last.fm.

Cheers!

Seems to be happily chugging away now. 4 tracks properly scrobbled in succession.

thanks for confirming. I will close this out and update the README indicating the universal-transcoder scrobbling scenario (start of track play..)