Kodi Community Forum
[RELEASE] trakt.tv tv/movie scrobbler - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: [RELEASE] trakt.tv tv/movie scrobbler (/showthread.php?tid=138745)



RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-04-06

fernandovg, I believe I know whats going on here, will look at it in a bit.

Update: fernandovg, I submitted an fix for this (pull request 92), if you could test this when you have some time please.


RE: [RELEASE] trakt.tv tv/movie scrobbler - Eboman - 2013-04-06

Thanks made my day

(2013-04-04, 21:30)nate1280 Wrote:
(2013-04-04, 21:09)Eboman Wrote: I have 1channel as an addon and since I upgraded to frodo scrobbling stopt working.

My logs http://pastebin.ca/2344874

This a iOS xbmc, any ideas would be appreciated

Update to v2.2.0 from git, it may resolve the scrobbling from 1channel.

Thanks made my day


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-04-06

(2013-04-06, 21:25)Eboman Wrote: Thanks made my day

I take it this means it works?


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-04-06

I only saw it now. Will try and let you know.

UPDATE: I guess it worked: took 1.5 trakt + 1.5 xbmc seconds to run. No messages at all (or it appear too fast saying 0 movies were synced)

thanks again!!

Code:
18:49:52 T:2932442176  NOTICE: [trakt] [Sync] Starting synchronization with trakt.tv
18:49:52 T:2932442176  NOTICE: [trakt] [Movies Sync] Getting movie data from XBMC
18:49:52 T:2932442176   DEBUG: JSONRPC: Incoming request: {"params": {"properties": ["title", "imdbnumber", "year", "playcount", "lastplayed"]}, "jsonrpc": "2.0", "id": 0, "method": "VideoLibrary.GetMovies"}
18:49:52 T:2932442176   DEBUG: JSONRPC: Calling videolibrary.getmovies
18:49:52 T:2932442176   DEBUG: RunQuery took 99 ms for 80 items query: select * from movieview
18:49:52 T:2932442176  NOTICE: [trakt] [Movies Sync] XBMC JSON Result: '[{u'movieid': .....}]'
18:49:53 T:2932442176  NOTICE: [trakt] [Movies Sync] Getting movie collection from trakt.tv
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] getLibrary(url: https://api.trakt.tv/user/library/movies/collection.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min)
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Request data: '{}'.
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Starting retry loop, maximum 10 retries.
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): (0) Request URL 'https://api.trakt.tv/user/library/movies/collection.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min'
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): urllib2.Request(https://api.trakt.tv/user/library/movies/collection.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min)
18:49:53 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): urllib2.urlopen()
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): response.read()
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Code: 200
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Time: 1494.91 ms
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Headers: {'content-length': '6632', 'x-powered-by': 'PHP/5.3.18-1~dotdeb.0', 'vary': 'Accept-Encoding', 'server': 'nginx/1.2.7', 'connection': 'Close', 'date': 'Sat, 06 Apr 2013 21:49:44 GMT', 'content-type': 'application/json'}
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): (0) JSON response: '[{u'year': 2013, u'tmdb_id': ................
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Have JSON data, breaking retry.
18:49:54 T:2932442176  NOTICE: [trakt] [Movies Sync] Getting seen movies from trakt.tv
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] getWatchedLibrary(url: https://api.trakt.tv/user/library/movies/watched.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min)
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Request data: '{}'.
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Starting retry loop, maximum 10 retries.
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): (0) Request URL 'https://api.trakt.tv/user/library/movies/watched.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min'
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): urllib2.Request(https://api.trakt.tv/user/library/movies/watched.json/b6135e0f7510a44021fac8c03c36c81a17be35d9/fernandovg/min)
18:49:54 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): urllib2.urlopen()
18:49:56 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): response.read()
18:49:57 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Code: 200
18:49:57 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Time: 1573.47 ms
18:49:57 T:2932442176  NOTICE: [trakt] [traktAPI] __getData(): Response Headers: {'x-powered-by': 'PHP/5.3.18-1~dotdeb.0', 'transfer-encoding': 'chunked', 'vary': 'Accept-Encoding', 'server': 'nginx/1.2.7', 'connection': 'Close', 'date': 'Sat, 06 Apr 2013 21:49:45 GMT', 'content-type': 'application/json'}
18:49:58 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): (0) JSON response: '[{u'year': .....................'}]'
18:49:58 T:2932442176  NOTICE: [trakt] [traktAPI] traktRequest(): Have JSON data, breaking retry.
18:50:02 T:2932442176  NOTICE: [trakt] [Movies Sync] trakt.tv movie collection is up to date.
18:50:03 T:2932442176  NOTICE: [trakt] [Movies Sync] trakt.tv movie playcount is up to date
18:50:04 T:2932442176  NOTICE: [trakt] [Movies Sync] XBMC movie playcount is up to date.
18:50:04 T:2932442176  NOTICE: [trakt] [Movies Sync] trakt.tv movie collection is clean.


UPDATE 2:
Is it possible to insert a button OK after a manual sync so we can read the messages? Otherwise there's no point showing them,


RE: [RELEASE] trakt.tv tv/movie scrobbler - Shinu - 2013-04-07

Don't know if anyone else is having a similiar issue, but my library isn't being updated on the trakt website when I add new media to xbmc. I have "add movies to trakt collection" , "update movie and xbmc playcount" enabled but still nothing.


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-04-07

(2013-04-07, 02:17)Shinu Wrote: Don't know if anyone else is having a similiar issue, but my library isn't being updated on the trakt website when I add new media to xbmc. I have "add movies to trakt collection" , "update movie and xbmc playcount" enabled but still nothing.

Post a log, without it, can't be of much help.


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-04-07

(2013-04-06, 23:43)fernandovg Wrote: I only saw it now. Will try and let you know.

UPDATE: I guess it worked: took 1.5 trakt + 1.5 xbmc seconds to run. No messages at all (or it appear too fast saying 0 movies were synced)

thanks again!!

UPDATE 2:
Is it possible to insert a button OK after a manual sync so we can read the messages? Otherwise there's no point showing them,

I do plan on reworking the notifications as it goes through the sync, just haven't got to it yet.


RE: [RELEASE] trakt.tv tv/movie scrobbler - N3MIS15 - 2013-04-07

(2013-04-07, 03:20)nate1280 Wrote:
(2013-04-06, 23:43)fernandovg Wrote: I only saw it now. Will try and let you know.

UPDATE: I guess it worked: took 1.5 trakt + 1.5 xbmc seconds to run. No messages at all (or it appear too fast saying 0 movies were synced)

thanks again!!

UPDATE 2:
Is it possible to insert a button OK after a manual sync so we can read the messages? Otherwise there's no point showing them,

I do plan on reworking the notifications as it goes through the sync, just haven't got to it yet.
Should be able to give a more accurate indication of progress now that sync is grabbing all data beforehand.


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-04-07

Reports:

IMO keep the auto-sync notifications the way it is but with a settings option (true/false) to show a report window at the end to show what was synced

Also an non-optional (awlays show) report with manual sync instead of separated messages.


RE: [RELEASE] trakt.tv tv/movie scrobbler - steve1977 - 2013-04-07

(2013-04-07, 02:17)Shinu Wrote: Don't know if anyone else is having a similiar issue, but my library isn't being updated on the trakt website when I add new media to xbmc. I have "add movies to trakt collection" , "update movie and xbmc playcount" enabled but still nothing.

What version of the add-on are you using. My understanding of the current state of the add-ons below:

2.0.0 - sync only working when scrobbling is also enabled; bug that prevents XBMC to shut down properly

2.1.0 - movie sync not working at all

2.2.0 - currently only on GIT. don't know the status, but it appears that it should work


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-04-07

Everything works with GIT version. I guess after a few more tests it will become the official.


RE: [RELEASE] trakt.tv tv/movie scrobbler - ezechiel1917 - 2013-04-07

using latest git and checkScrobblingExclusion is not working anymore.

Code:
12:30:00 T:2870983488  NOTICE: [trakt] checkScrobblingExclusion(): Checking exclusion settings for '/media/drive1/series/friends/season 1/friends.1x01.avi'.

I've set location /media/drive1/ as Excluded path, but trakt seems not to be detecting video is in this path and scrobbles it to the site.

Code:
<setting id="ExcludePath" value="/media/drive1/" />
<setting id="ExcludePathOption" value="true" />

EDIT:
looks like utilities.py (since https://github.com/nate1280/script.trakt/commit/d35cb35cccace8ab92983b6d55d60accdb6b774e)

Code:
if not ExcludePath and getSettingAsBool('ExcludePathOption'):
isn't working

when changed to
Code:
if ExcludePath != "" and getSettingAsBool('ExcludePathOption'):
it works

etc.


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-04-07

LOG?


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-04-07

(2013-04-07, 14:42)ezechiel1917 Wrote: using latest git and checkScrobblingExclusion is not working anymore.

Code:
12:30:00 T:2870983488  NOTICE: [trakt] checkScrobblingExclusion(): Checking exclusion settings for '/media/drive1/series/friends/season 1/friends.1x01.avi'.

I've set location /media/drive1/ as Excluded path, but trakt seems not to be detecting video is in this path and scrobbles it to the site.

Code:
<setting id="ExcludePath" value="/media/drive1/" />
<setting id="ExcludePathOption" value="true" />

EDIT:
looks like utilities.py (since https://github.com/nate1280/script.trakt/commit/d35cb35cccace8ab92983b6d55d60accdb6b774e)

Code:
if not ExcludePath and getSettingAsBool('ExcludePathOption'):
isn't working

when changed to
Code:
if ExcludePath != "" and getSettingAsBool('ExcludePathOption'):
it works

etc.

Not sure how I missed that one.

Code:
if ExcludePath and getSettingAsBool('ExcludePathOption'):

Will work, not sure why I negated the test there.


RE: [RELEASE] trakt.tv tv/movie scrobbler - codeseven - 2013-04-08

Hey guys. Hoping that someone here can help me out. I went back and forth a couple times with Justin from support at Trakt and he told me I should come here to see if I can get my problem worked out. First of all, I'm on Win7 XBMC 12.1 Frodo with Trakt add-on 2.2. Everything scrobbles fine so long as I play the media files manually, however it becomes hit or miss (more miss than anything) when I create a playlist in XBMC and play from there. It scrobbles the first file I play, and once it completes it says that I've watched that episode, however after that nothing happens even though more video files from the playlist continue to play. I enabled debug mode and tried to recreate the error. Seeing as I'm new to all this, I don't know what part of the log you need to see so I have posted the entire thing below. This was me attempting to play a playlist - the first file scrobbled fine as normal, the next one did not, the next one did, and the next two did not. Please take a look and let me know if you can find any issues that might be going on. Thanks so much!

http://paste2.org/ejNxhgJp