jesseward / plex-lastfm-scrobbler

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

scrobble from other devices #23

Closed bizob2828 closed 9 years ago

bizob2828 commented 9 years ago

It appears your reg ex does not catch plays on iphone 6. I'm not seeing any clean reg ex to indicate that a track is being logged like the web ui client. Any thoughts? I'm willing to help with this. Looks like this regex may work

iPhone:

.*GET\s\/library\/metadata\/(\d+).*checkFiles.*X-Plex-Device.*
jesseward commented 9 years ago

hi @bizob2828 thanks for the report.

Please paste a snippet of PMS logs to http://pastebin.com (or similar site) that captures the logs for a pair of played audio files. I will apply the updates to the list of regex allowances.

thanks

bizob2828 commented 9 years ago

Sounds good. I will do this in the morn. My logs are very noisy at the moment, as it is rebuilding all meta data. Thanks for the prompt response.

bizob2828 commented 9 years ago

here you go: http://pastebin.com/raw.php?i=A6SvTjqk

jesseward commented 9 years ago

thanks @bizob2828 , I am following library id 45137 through these logs and it doesn't appear to be a complete play.

The following is the last instance of 45137 , which hints it only made it through ~7% of the 4 minute song .

Oct 29, 2014 11:49:12 [0x7f23817fa700] DEBUG - Client [E8AC4169-EFFA-40B8-9D49-EF7C91FC224E] reporting timeline state stopped, progress of 17786/253074ms for guid=, ratingKey=45137 url=, key=/library/metadata/45137, containerKey=, metadataId=45137

Can you paste additional logs that may capture the complete track being played ?

bizob2828 commented 9 years ago

Shit sorry. I cut it short. Let me play a song in full. Either way it did not look like it emits a "got played" like the others

Sent from my iPhone

On Oct 29, 2014, at 4:12 PM, Jesse Ward notifications@github.com wrote:

thanks @bizob2828 , I am following library id 45137 through these logs and it doesn't appear to be a complete play.

The following is the last instance of 45137 , which hints it only made it through ~7% of the 4 minute song .

Oct 29, 2014 11:49:12 [0x7f23817fa700] DEBUG - Client [E8AC4169-EFFA-40B8-9D49-EF7C91FC224E] reporting timeline state stopped, progress of 17786/253074ms for guid=, ratingKey=45137 url=, key=/library/metadata/45137, containerKey=, metadataId=45137 Can you paste additional logs that may capture the complete track being played ?

— Reply to this email directly or view it on GitHub.

bizob2828 commented 9 years ago

I spoke too soon it did get a Oct 29, 2014 23:14:20 [0x7f2382ffd700] DEBUG - Library item 9323 'Watermelon On The Vine' got played by account 1! but it doesn't always scrobble it from my iPhone, any thoughts there?

bizob2828 commented 9 years ago

it says this in the log: 2014-10-29 23:15:56,073 [21347] [plex_scrobble.plex_monitor parse_line] [INFO] Found played song and extracted library id '9323' from plex log 2014-10-29 23:15:56,073 [21347] [plex_scrobble.plex_monitor monitor_log] [WARNING] Dupe detection : 9323, not submitting

bizob2828 commented 9 years ago

i guess i'm just being impatient, i will close

telega commented 9 years ago

It doesnt look like my iPad client is generating the played messages in the Plex log either. http://pastebin.com/xYThmw1X

bizob2828 commented 9 years ago

Yea I noticed it still randomly not logging. I think it has to do with the log rotation and how chatty the logging is when streaming from a mobile device

Sent from my iPhone

On Nov 6, 2014, at 7:09 PM, Tom Allen notifications@github.com wrote:

It doesnt look like my iPad client is generating the played messages in the Plex log either. http://pastebin.com/xYThmw1X

— Reply to this email directly or view it on GitHub.