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 - kadeschs - 2013-06-22

Does this plugin work in XBMC on IOS devices? It doesn't seem to scrobble anything and manually running causes it to freeze half way into synchronizing. Thanks.


RE: [RELEASE] trakt.tv tv/movie scrobbler - blitzio - 2013-06-23

I'm having issues with XBMC not scrobbling any movies or tv shows at all on trakt. I'm on the latest version Frodo.

I've also followed the instructions on the OP closely and been following the thread.

After watching a movie I am prompted to rate it, and then I see the syncing pop ups at the bottom right, however they are never updated on my trakt profile. Is there anyone I could please send my debug log to, to have a look?

Thanks


RE: [RELEASE] trakt.tv tv/movie scrobbler - N3MIS15 - 2013-06-23

Post your debug log on pastebin and post the link here.


RE: [RELEASE] trakt.tv tv/movie scrobbler - blitzio - 2013-06-23

(2013-06-23, 13:56)N3MIS15 Wrote: Post your debug log on pastebin and post the link here.

Thanks for your quick reply, here's my debug log http://pastebin.com/J7nGY9cG I wasn't able to post all of it because all of it won't fit pastebin. I can post the next parts if need be.

Edit: Here's another earlier debug log http://xbmclogs.com/show.php?id=31105


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

That 2nd log file you posted, it sent the rating and scrobble for the 2 movies fine. As to why they're not updating on trakt.tv, no idea, but the api calls are working and returning success, so they should be.

The first log file, there's not enough information in it to see anything.


RE: [RELEASE] trakt.tv tv/movie scrobbler - blitzio - 2013-06-23

(2013-06-23, 15:58)nate1280 Wrote: That 2nd log file you posted, it sent the rating and scrobble for the 2 movies fine. As to why they're not updating on trakt.tv, no idea, but the api calls are working and returning success, so they should be.

The first log file, there's not enough information in it to see anything.

Yes I'm pretty stumped as well as to why they're not updating on trakt.tv. Everything else seems to be in order. Wondering if anyone else has had this problem and know a possible workaround.


RE: [RELEASE] trakt.tv tv/movie scrobbler - dickalan - 2013-06-25

(2013-05-20, 16:22)nate1280 Wrote: So, I just submitted my latest changes as a pull request, which some of you have probably been waiting for (or testing).

But first, a thanks to ezechiel1917 for help testing during initial development, and ideas/feedback.

Tagging/List support!

Overview:
With this new feature, you'll now be able to create tags from your trakt.tv Lists, Watchlists, as well as Ratings (Watchlists and Ratings are enabled by a setting).

You can edit what lists an item belongs to directly within XBMC, and add new lists this item belongs to.

You'll also be able to fully edit your trakt.tv lists within XBMC, selecting items from your XBMC library. As well as edit details about the list, like its description, privacy settings, allow shouts and numbering. You can also rename a list.

There is also custom script/skin support for directly adding or removing items from lists.

When a movie is scrobbled, if you have watchlists enabled, and the move you've just watched happens to be in your watchlist, it will automatically remove the tag so you don't need to force an updatetags to re-sync your tags.

When you rate a movie or show, and you have ratings tags enabled, it will also update the rating tags, either removing (if unrate, or new rating is lower then minimum), or adding new rating tags, again so you don't have to force a re-sync.

Notes:
  • All tags create by this feature, are prefixed with "trakt.tv - " to differentiate them from any other tags you might have in your library.
  • All tagging actions will preserve any existing tags, it will only manipulate trakt.tv specific tags.
  • updatetags sync is a one way sync, from trakt.tv to XBMC
  • managelists can be used to to do manual 2-way updates within XBMC.

Supported Methods:
There are 5 new actions added with this feature, they are as follows:

Code:
RunScript(script.trakt,action=updatetags)
RunScript(script.trakt,action=managelists)
RunScript(script.trakt,action=itemlists[,media_type=<movie|show>,dbid=#])
RunScript(script.trakt,action=addtolist,list=<listname>[,media_type=<movie|show>,dbid=#])
RunScript(script.trakt,action=removefromlist,list=<listname>[,media_type=<movie|show>,dbid=#])

The actions itemlists, addtolist and removefromlist have optional parameters of media_type and dbid, these can be used (just like the rating actions) to act against a specific library item. Without these parameters, the currently selected item will be used.

updatetags can also be configured to run after a library sync, in tagging settings.

I have also added a temporary timertest action, this can be manually run from the Debug settings, or tied to a keyboard action like any others. Alls this action does, is times various JSON requests with/without tags and different ways lists are built. This was used to get a general idea of how long specific functions might have taken to load. If you do run this, the data will be in your log file, and I wouldn't mind seeing this information, send me a PM with it plus specs of the machine it was run on and whether you're using the internal SQLite DBs or a MySQL server (and what its running on). It will probably be removed before a merge happens (if it does). This is just for statistics gathering, to see how various calls behave.

Information:
This feature can only work with library items, specifically only movies and shows. Even tho trakt.tv lists can have seasons and episodes in them, these 2 items do not have tagging support within XBMC so any items like these are ignored and left untouched in your lists.

Here is a sample keyboard setting for all function, you can set them up how ever you choose.

Code:
<keymap>
  <MyVideoLibrary>
    <keyboard>
      <t>RunScript(script.trakt,action=updatetags)</t>
      <y>RunScript(script.trakt,action=itemlists)</y>
      <t mod="alt">RunScript(script.trakt,action=addtolist,list=Watchlist)</t>
      <y mod="alt">RunScript(script.trakt,action=removefromlist,list=Watchlist)</y>
      <u>RunScript(script.trakt,action=managelists)</u>
    </keyboard>
  </MyVideoLibrary>
</keymap>

Screenshots
itemlists dialog:
Image

managelists dialog, showing your trakt.tv lists.
Image

managelists dialog, showing movie/tv show selection, and parent folder, and editing options.
Image

managelists dialog, showing your movies, with the ability to toggle selection for addition/removal from list.
Image

I'll update the original post once/if it gets merged in.
Other
I believe I've explained everything as best as I can, probably left some things out, so I may update this with new/more information later.
As usual, enjoy, and feedback/etc is greatly welcome, and this needs testing before it can be merged into the plugin.

Is it possible to also view/manage other lists? For example, the top two that come to mind would be your Library>Collection list.
http://trakt.tv/user/dickalan/library/movies/collection
OR the plays/seen it list?
http://trakt.tv/user/dickalan/library/movies/plays

There's actually a whole bunch of stuff that would be cool to mangage/view.
https://sites.google.com/site/customtrakttv/


RE: [RELEASE] trakt.tv tv/movie scrobbler - kri kri - 2013-07-01

Might be more of a XBMC problem, but I have manually updated my repos and forced an update check and I am still on 2.2.0. Has 2.3.0 been pushed out yet?


RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-07-01

2.3 will be out soon in the official repo.


RE: [RELEASE] trakt.tv tv/movie scrobbler - MeMeMe - 2013-07-01

I've just installed Trakt.tv, set it up to scrobble movies and TV shows, and to sync after running library updates, and it's not doing anything.

I have it set up to pop up the option to rate a movie at the end, and skipped through a movie to reach the end, and it did nothing.

I have tried to manually launch the sync to trakt.tv by clicking trakt in the program addins listing, and nothing happens.

Any idea why it's not working?


RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-07-01

We need to see a log file with the debug info.


RE: [RELEASE] trakt.tv tv/movie scrobbler - MeMeMe - 2013-07-01

I closed XBMC down, and started it up again, and got a script error: trakt.tv, and immediately after that it popped up that it was synchronizing movies and then tv shows.

So it seems to be working now, but wasn't immediately after installing.


RE: [RELEASE] trakt.tv tv/movie scrobbler - MeMeMe - 2013-07-02

Okay, I'm still having problems with trakt. With it running, i get the script error message every time i start up XBMC.
This message keeps popping up on each restart, even if the plugin is disabled. It only stops if i uninstally the plugin completely.

With the plugin active, XBMC slows to a crawl, navigating through the menus is an ordeal, and after a while it hangs completely and I have to force close it.

The log file is 4000 lines, so hard to post that even at pastebin. This is the only section that mentioned an error:

Code:
03:12:57 T:16272  NOTICE: [trakt] Service thread starting.
03:12:57 T:16272  NOTICE: [trakt] [traktPlayer] Initalized.
03:12:57 T:16272   ERROR: EXCEPTION: access_voilation
03:12:57 T:16272   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: access_voilation
                                            Traceback (most recent call last):
                                              File "D:\System\AppData\Roaming\XBMC\addons\script.trakt\default.py", line 13, in <module>
                                                traktService().run()
                                              File "D:\System\AppData\Roaming\XBMC\addons\script.trakt\service.py", line 69, in run
                                                self.Monitor = traktMonitor(action = self._dispatchQueue)
                                            RuntimeError: access_voilation
                                            -->End of Python script error report<--
03:12:57 T:10896   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib.dll)
03:12:57 T:6576  NOTICE: Thread Jobworker start, auto delete: true
03:12:57 T:15804   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
03:12:57 T:13624   DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "id": 1, "method": "VideoLibrary.GetEpisodes", "params": { "properties": ["title", "playcount", "season", "episode", "showtitle", "plot", "file", "rating", "resume", "tvshowid", "art", "streamdetails", "firstaired", "runtime"], "limits": {"end": 20}, "sort": {"method": "random" }, "filter": {"field": "playcount", "operator": "lessthan", "value": "1"}}}



RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-07-02

Have you tried the latest 2.3 from github? It will be in the repo once approved, but it's worth giving it a try before then. If its stil throwing an error, its still best to post the entire log if you can. You should be able to keep it smaller by starting up and doing the action that is crashing it.


RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-07-02

2.3 was just added to the official xbmc repository.