I did restart PMS. So I need to manually restart scrobbling after every time PMS is restarted? Can't it be enabled every time?
Yep, is fixed in dev branch on github.
Sweet
Here's a log. I watched two episodes of korra : http://trakt.tv/show/the-legend-of-korra
I used your dev branch because of the fix
http://ge.tt/2z38J0K/v/0
<br />
2012-07-03 18:48:00,245 (-4f967000) : INFO (__init__:199) - Current id: 2829 and previous id: 2805 using action: scrobble<br />
2012-07-03 18:48:00,245 (-4f967000) : INFO (__init__:203) - Lets refresh the metadata<br />
2012-07-03 18:48:00,246 (-4f967000) : INFO (__init__:279) - http://localhost:32400/library/metadata/2829<br />
2012-07-03 18:48:00,247 (-4f967000) : DEBUG (networking:153) - Requesting 'http://localhost:32400/library/metadata/2829'<br />
2012-07-03 18:48:00,248 (-4f967000) : INFO (__init__:312) - Failed to connect to http://localhost:32400/library/metadata/2829.<br />
2012-07-03 18:48:00,249 (-4f967000) : INFO (__init__:199) - Current id: 2829 and previous id: 2829 using action: scrobble<br />
This is what caused it. The plugin failed to connect to your PMS to get the metadata for the item.
Currently I only tries this once so this have room for improvements.
Could you please run:
curl http://localhost:32400/library/metadata/2829 in your terminal and send me the output?
surprising it would fail to connect since it's obviously running as I watched the show :/
http://pastie.org/private/hpnotix0slas9xnt3bqcw
The xml looks ok so (the only thing I am using is the guid here: guid="com.plexapp.agents.thetvdb://251085/1/8?lang=en") so I cannot understand why it doesn't work for you.
Will try to improve it but could you please give som details regarding your setup over PM (OSX version and PMS version) so I can try to recreate the error.
not much out of the ordinary really. 10.7.4 OSX, and Version 0.9.6.3.140-9c9f5ce PMS.
your proof of concept plugin worked really well.
Fixed in latest version see: http://forums.plexapp.com/index.php/topic/35626-plex-media-server-scrobbler-for-trakttv/page__view__findpost__p__272585
Just a question, why would someone want to sync library (2).
Shouln't it be enough just to sync seen?
well lets say you downloaed first in sd tv format and later you find a 720p or 1080p format and you overwrite that sd tv version..
guess it will need a sync than ...
also people delete things.....
not all people are nuts like i am and have 26TB of storage at home ;)
[EDIT]
you might be right .. i just checked on xbmc ....
xbmc trakt uses
update tv
update movies
sync seen movies
sync seen tv
clean movies
clean tv
so sync database might be same as update
Hello, tester22! Many thanks for this plugin!
I’m wondering if your planning on implementing trakt-to-plex sync as well?
This doesn’t seem to work for me. It’s something that it’s really useful say if I watch something at a friend’s house, on the movies, on netflix or something, and mark it as seen on trakt that it would get “ported” to plex as well.
Just noticed this now... Sorry.
tester22, the plugin seems to cause video to stop after a second or two when using DLNA with Plex Media Server. If I play the same video in Plex on my Mac, it works fine. Nothing shows up in the com.plexapp.plugins.trakttv.log when DLNA streamed video stops. Not sure what to do, or which log file to give you? Removing the plugin immediately restores functionality. any ideas?
The log file you are after is: ~/Library/Logs/Plex DLNA Server.log you could send it to me but note sure if it helps.
Havn't tried DLNA functionality so maybe that isn't possible with the logic (hack) I am using to figure out that something is playing.
Does it work if you have the plugin installed but without auto scrobbling? Then you would need to manually sync your library using your remote but what you are watching will be added to trakt.tv
Tried to recreate your issue with PMS version 0.9.6.3 (OSX 10.7.3) and Samsung UE32D6515 TV using DLNA. Scrobbling doesn't work and I will fix that but playback works as expected.
What DLNA client are you using?
Hi Tester,
Thank you for the plugin I was waiting for in order to bring more social to Plex.
My problem : Scan stops when it finds an exotic movie (= a french documentary with metadata imported by myself).
However, the plugin is working very well with Tv shows.
The portion of the log :
INFO (init:236) - You have seen De Gaulle Ou L’éternel Défi 1 sur 6 Le Rebelle
2012-07-12 22:43:53,961 (-4faed000) : INFO (init:387) - http://localhost:32400/library/metadata/19481
2012-07-12 22:43:53,963 (-4faed000) : DEBUG (networking:156) - Requesting ‘http://localhost:32400/library/metadata/19481’
2012-07-12 22:43:53,998 (-4faed000) : CRITICAL (sandbox:292) - Exception when calling function ‘SyncSection’ (most recent call last):
File “/Users/antoinemercier/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py”, line 283, in call_named_function
result = f(*args, **kwargs)
File “/Users/antoinemercier/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle/Contents/Code/init.py”, line 238, in SyncSection
movie_dict = get_metadata_from_pms(video.get(‘ratingKey’))
File “/Users/antoinemercier/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle/Contents/Code/init.py”, line 393, in get_metadata_from_pms
metadata = {‘title’ : section.get(‘title’), ‘year’ : int(section.get(‘year’)), ‘duration’ : int(float(section.get(‘duration’))/60000)}
TypeError: int() argument must be a string or a number, not ‘NoneType’
Yeah, should be easy to fix if you could run:
Curl http://localhost:32400/library/metadata/19481 in the terminal and send me the output.
So I got it installed (plugins throw me for a loop each time, I swear) and then I went and tried watching a show. It did a check-in properly, but when I exited the show it didn’t the cancel the check-in, and it’s been several minutes. Have I just not waited long enough, or do I need to watch something else for it to realize that the original show have been abandoned, or is this an unsupported edge case?
Et voila :
<?xml version="1.0" encoding="UTF-8"?>
This is fixed in the version on github now.
Yeah, that is a known limitation.
The only way to figure out if something is playing this moment is to parse the logfiles. They only list when a client send data back to the server not when the client stops. So until there are hooks or an API to get this data I cannot cancel watching without risking that the client still is playing the item. If you change the playing item the status on trakt.tv should change in a couple of seconds.
But the trakt.tv site removes the watching status after 10 minutes so this shouldn't be any issue for most users.