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-03-24

(2013-03-24, 19:49)mikelykzit Wrote: Hi, thanks. I checked my old backups, but no log files in there. I've since updated to 12.1 and trakt to 2.1, but still no luck. Debating rolling back to Eden to see if that will change anything.

I made a second fix on the 18th for this, but its not in the repo version, so try 2.2 from git and see if that works, and provide logs from 2.2 if it works or doesn't work please.


RE: [RELEASE] trakt.tv tv/movie scrobbler - mikelykzit - 2013-03-24

(2013-03-24, 20:17)nate1280 Wrote: I made a second fix on the 18th for this, but its not in the repo version, so try 2.2 from git and see if that works, and provide logs from 2.2 if it works or doesn't work please.

On 2.2 now, but sadly, still nothing. http://xbmclogs.com/show.php?id=6779


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-24

(2013-03-24, 22:40)mikelykzit Wrote:
(2013-03-24, 20:17)nate1280 Wrote: I made a second fix on the 18th for this, but its not in the repo version, so try 2.2 from git and see if that works, and provide logs from 2.2 if it works or doesn't work please.

On 2.2 now, but sadly, still nothing. http://xbmclogs.com/show.php?id=6779

Seems I still had a bug in that part of the code, just added another fix. If you're familiar with git, update your plugin to whats in pull request #76 and try again if you get the chance, and post another log file.


RE: [RELEASE] trakt.tv tv/movie scrobbler - mikelykzit - 2013-03-25

(2013-03-24, 23:36)nate1280 Wrote: Seems I still had a bug in that part of the code, just added another fix. If you're familiar with git, update your plugin to whats in pull request #76 and try again if you get the chance, and post another log file.

I essentially just grabbed the 6 changed files with your edits manually, and restarted XBMC.
To make sense of the log: Played 1 file normally, no luck. Played it via the "exported to library" way, no luck. Played the same file as the last log again the normal way, no luck.

Here it is: http://xbmclogs.com/show.php?id=6819

Thanks again for trying to hunt this down for me, Nate!


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-25

(2013-03-25, 00:21)mikelykzit Wrote: I essentially just grabbed the 6 changed files with your edits manually, and restarted XBMC.
To make sense of the log: Played 1 file normally, no luck. Played it via the "exported to library" way, no luck. Played the same file as the last log again the normal way, no luck.

Here it is: http://xbmclogs.com/show.php?id=6819

Thanks again for trying to hunt this down for me, Nate!

There is something going on with in your service.py file. The exception thats being thrown doesn't make much sense.

Code:
utilities.Debug("[traktPlayer] onPlayBackStarted() - Playing a non-library 'episode' - %s - SdEd - %s." % (data['showtitle'], data['season'], data['episode'], data['title']))

The above line is completely wrong, the SdEd should be S%02dE%02d, don't know why its not.

https://github.com/nate1280/script.trakt/archive/fixes_changes_round2.zip contains the branch i'm working on in pull 76.

The fact that its getting to this line does mean there is enough data and should scrobble, you can either edit your service.py file and goto line 226, and make that change if it has SdEd there instead of S%02dE%02d or download the zip and replace all the files with clean copies.

If you do, please post another log.

For others reading, unless you want to test bleeding edge changes, don't get that zip, just wait till it gets merged into the git version for testing.


RE: [RELEASE] trakt.tv tv/movie scrobbler - Kez- - 2013-03-25

Hi all, I seem to be having a problem syncing up movies.. I think the issue is with this error message:

Code:
09:37:16 T:3100  NOTICE: [trakt] [Movies Sync] Checking for XBMC movies that are not on trakt.tv
09:37:16 T:3100   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "%AppData%\AppData\Roaming\XBMC\addons\script.trakt\service.py", line 141, in run
                                                movies.Run()
                                              File "%AppData%\Roaming\XBMC\addons\script.trakt\movie_sync.py", line 273, in Run
                                                self.AddToTrakt()
                                              File "%AppData%\Roaming\XBMC\addons\script.trakt\movie_sync.py", line 88, in AddToTrakt
                                                trakt_imdb_ids = [x['imdb_id'] for x in self.trakt_movies_collection if 'imdb_id' in x]
                                            TypeError: 'NoneType' object is not iterable
09:37:27 T:2268  NOTICE: Thread Background Loader start, auto delete: false
09:37:57 T:4196  NOTICE: Previous line repeats 2 times.

If I disable movie sync, TV shows sync up fine.. but the movies aren't being added at all. Is anyone able to shed any light on this?

Thanks!


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-25

(2013-03-25, 11:50)Kez- Wrote: Hi all, I seem to be having a problem syncing up movies.. I think the issue is with this error message:

Code:
09:37:16 T:3100  NOTICE: [trakt] [Movies Sync] Checking for XBMC movies that are not on trakt.tv
09:37:16 T:3100   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\threading.py", line 532, in __bootstrap_inner
                                                self.run()
                                              File "%AppData%\AppData\Roaming\XBMC\addons\script.trakt\service.py", line 141, in run
                                                movies.Run()
                                              File "%AppData%\Roaming\XBMC\addons\script.trakt\movie_sync.py", line 273, in Run
                                                self.AddToTrakt()
                                              File "%AppData%\Roaming\XBMC\addons\script.trakt\movie_sync.py", line 88, in AddToTrakt
                                                trakt_imdb_ids = [x['imdb_id'] for x in self.trakt_movies_collection if 'imdb_id' in x]
                                            TypeError: 'NoneType' object is not iterable
09:37:27 T:2268  NOTICE: Thread Background Loader start, auto delete: false
09:37:57 T:4196  NOTICE: Previous line repeats 2 times.

If I disable movie sync, TV shows sync up fine.. but the movies aren't being added at all. Is anyone able to shed any light on this?

Thanks!

Is your movie collection on trakt empty? If so, this is the cause, there are fixes available, just waiting to be merged to the git version.


RE: [RELEASE] trakt.tv tv/movie scrobbler - Kez- - 2013-03-25

Ah yeah, that was the issue. I just added one manually first and then it started working perfectly. Thanks very much!


RE: [RELEASE] trakt.tv tv/movie scrobbler - ezechiel1917 - 2013-03-26

tried to download git version as .zip, replaced 2.1.0 version in addons folder but this new version loop crashes when I start xbmc.

last rows from log:

Code:
23:43:47 T:2859453248  NOTICE: -->Python Interpreter Initialized<--
23:43:47 T:2859453248   DEBUG: Process - The source file to load is special://home/addons/script.trakt/default.py
23:43:47 T:2859453248   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.trakt:/home/xbmc/.xbmc/addons/script.module.bigpictures/lib:/usr/share/xbmc/addons/weather.wunderground/resources/lib/wunderground:/usr/share/xbmc/addons/script.module.simplejson/lib:/home/xbmc/.xbmc/addons/script.module.xmltodict/lib:/home/xbmc/.xbmc/addons/script.module.dmd-czech.common/lib:/home/xbmc/.xbmc/addons/script.module.myconnpy/lib:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.buggalo/lib:/home/xbmc/.xbmc/addons/script.module.mechanize/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/home/xbmc/.xbmc/addons/script.module.xbmcswift2/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:
23:43:47 T:2859453248   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.trakt

Am I doing something wrong?

EDIT:
script.trakt-master folder works, but script.trakt folder crashes (2.1.0 works ok though). Deleting Addons15.db doesn't help. Hm...


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-03-26

nate1280, I'm using the 2.2.0 version (with the latest commits March 25)

My rating dialog its not showing the translated rating class. (superb, etc...) BUT the add-on settings is showing the translated strings ok.
I doubled checked the strings ID of english and PR-BR strings.xml and they are ok

What's wrong?
Thanks


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-26

(2013-03-26, 02:32)fernandovg Wrote: nate1280, I'm using the 2.2.0 version (with the latest commits March 25)

My rating dialog its not showing the translated rating class. (superb, etc...) BUT the add-on settings is showing the translated strings ok.
I doubled checked the strings ID of english and PR-BR strings.xml and they are ok

What's wrong?
Thanks

Which IDs? Is it showing anything, at least the english strings?

Update: I just tested showing the dialog manually (modified the manual sync code to make it show with some fake data), and switched my language to PR-BR, it it seems to show the right strings, Excelente for Superb and such.

I'm not sure, if there's any more info you could provide, I can check it again tomorrow.


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-03-26

Never mind. I did a reboot and now its ok. Sorry about your time.

When I update files XBMC/Add-on files should/must I reboot or just kill xbmc and start it again?
Are those files loaded into the memory so when I update them xbmc don't read the physical file until next reboot?

Thanks for your fast replies and great work with trakt script.


RE: [RELEASE] trakt.tv tv/movie scrobbler - N3MIS15 - 2013-03-26

trakt addon is a service, so it is always running in the background, so if you replace/modify it. best to restart xbmc.


Re: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-03-26

Thanks!


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-26

Or you can just disable/enable the plugin.