Jump to content

How "Instant" is the Trakt Plugin?


mbc0
Go to solution Solved by Redshirt,

Recommended Posts

Hi,

 

Due to a PC crash I had to re-install mediabrowser server from scratch.  I am importing the watched status from Trakt for all 4 users but not everything is syncing although the task finishes without errors.  Some TV & most if not all movies are now synced but there are a lot of shows that are saying unwatched but if I go to the Trakt website it shows them as watched? is it something that is gradual or do I have a problem?

 

*Note, I know that 2 of the users have not watched anything, Trakt is only important for the 2 that show watched status.

 

Many Thanks

 

Ip: 192.168.0.40:62131. Headers: Host=192.168.0.27:8096,Connection=keep-alive,Content-Length=0,Accept=*/*,X-MediaBrowser-Token=ce2484db263d40acaa70abec70143ccf,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 38.0.2125.111", DeviceId="f54953ee3263a9c685363d26fe60b2f857cb1f19", Version="3.0.5424.1", UserId="adafd08ee0ca4144b14709cf00bd2e8f",Origin=http://192.168.0.27:8096,Accept-Encoding=gzip,deflate,Accept-Language=en-US,en;q=0.8,ru;q=0.6
2014-11-14 17:34:01.2787 Info - App: Executing Import playstates from Trakt.tv
2014-11-14 17:34:01.2787 Debug - HttpServer: HTTP Response 204 to 192.168.0.40. Response time: 4.0002 ms.
2014-11-14 17:34:01.2787 Debug - HttpServer: HTTP GET http://192.168.0.27:8096/mediabrowser/ScheduledTasks?isHidden=false
Ip: 192.168.0.40:62131. Headers: Host=192.168.0.27:8096,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,X-MediaBrowser-Token=ce2484db263d40acaa70abec70143ccf,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 38.0.2125.111", DeviceId="f54953ee3263a9c685363d26fe60b2f857cb1f19", Version="3.0.5424.1", UserId="adafd08ee0ca4144b14709cf00bd2e8f",Accept-Encoding=gzip,deflate,sdch,Accept-Language=en-US,en;q=0.8,ru;q=0.6
2014-11-14 17:34:01.2787 Debug - HttpServer: HTTP Response 200 to 192.168.0.40. Response time: 2.0001 ms.
2014-11-14 17:34:01.3187 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/movies/all.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:02.8648 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/collection.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:03.8939 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 0543e199daf043e68255d3693a7b57d4
2014-11-14 17:34:03.8939 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: de1642a45d5d4e25a71c9a66a77e8fa8
2014-11-14 17:34:06.7810 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/watched.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:09.5102 Info - Trakt: tMovies count = 0
2014-11-14 17:34:09.5102 Info - Trakt: tShowsCollection count = 0
2014-11-14 17:34:09.5102 Info - Trakt: tShowsWatched count = 0
2014-11-14 17:34:09.5952 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/movies/all.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:13.8944 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: dfc2bc9b2b9a40b5878d698ce18e6617
2014-11-14 17:34:13.8944 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: c4ae3913df3e447e885169395bcd7b8c
2014-11-14 17:34:17.5126 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/collection.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:20.3438 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/watched.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:22.6679 Info - Trakt: tMovies count = 2696
2014-11-14 17:34:22.6679 Info - Trakt: tShowsCollection count = 433
2014-11-14 17:34:22.6679 Info - Trakt: tShowsWatched count = 57
2014-11-14 17:34:45.2062 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/movies/all.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:47.7544 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/collection.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:50.6345 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/watched.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:53.4127 Info - Trakt: tMovies count = 0
2014-11-14 17:34:53.4127 Info - Trakt: tShowsCollection count = 0
2014-11-14 17:34:53.4127 Info - Trakt: tShowsWatched count = 0
2014-11-14 17:34:53.4997 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/movies/all.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:34:58.4960 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/collection.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:35:01.2881 Info - App: HttpClientManager POST: http://api.trakt.tv/user/library/shows/watched.json/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb/*Username hidden on purpose
2014-11-14 17:35:03.5783 Info - Trakt: tMovies count = 2697
2014-11-14 17:35:03.5783 Info - Trakt: tShowsCollection count = 435
2014-11-14 17:35:03.5783 Info - Trakt: tShowsWatched count = 118
Link to comment
Share on other sites

I am guessing this isn't a patience thing as nothing has changed :-( although Trakt is working according to the log above and is certainly syncing some items it is just not syncing everything and not giving an error?

Link to comment
Share on other sites

Redshirt

You'll always get an "unauthorized" response if you paste the url in the browser.

Link to comment
Share on other sites

Angelblue05

Oh really? That's good to know @@Redshirt . Is there a way to troubleshoot this problem otherwise? I've been also having issues as you know :) Half the content does not get reported to Trakt and there is no errors in the log.

 

I really want to help and I have time on my hands  :)

Edited by Angelblue05
Link to comment
Share on other sites

I copied all of the userdata folder before I uninstalled, is the watched information in there somewhere? I have a very "Annoyed" daughter giving me a lot of grief over this :-(

Link to comment
Share on other sites

Also, just to check I am only running Import playstates from Trakt.tv, I haven't selected Sync library to trakt.tv Just want to check that is correct :-)

Link to comment
Share on other sites

Angelblue05

@@mbc0, this is correct. Is there a Trakt account linked to your daughter's MediaBrowser account? Or are you using the same Trakt account for all 4 (well, 2) users?

Edited by Angelblue05
Link to comment
Share on other sites

Hi mate, I have configured trakt with 4 different users but only 2 are in use. each account has its own individual username but The problem exists for both users. So 4 different accounts on trakt

Edited by mbc0
Link to comment
Share on other sites

Angelblue05

Right now, I don't think I've experienced this issue, but I'm going to test to make sure and let you know. I think Trakt syncs using the TVDB ID....Is there a TVDB ID attached (via the metadata manager) to the content that's not syncing, like so?

 

5467b6ef7b291_Trakt.jpg

 

Edit:

 

I removed the TVDB ID from my Game of Thrones (I left the ones at season and episode level) and it lost its watched status instantly. I then tried to import the playstate from Trakt, where Game of Thrones was marked as watched, but it didn't sync with MediaBrowser Server. After I refreshed Game of Thrones via the metadata manager, it re-added the TVDB ID. When I tried to import the playstate again and it synced properly.

 

I guess, make sure the problematic content is identified properly. Hopefully, if the problem persists, someone will be able to figure it out for you.  :mellow:

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

Hi,

 

Thanks so much for your time and going to the hassle of testing that for me, I really appreciate it! 

 

Unfortunately that does not seem to be my problem though...   For this example I am using Angry boys... As you can see Trakt knows I have watched them all but media browser thinks I have not even though I have a TVDB ID.  But for the series "The 100" both Trackt & Media Browser have synced.. even though they have the same information... all pictures are below and if you can think of anything else I would really really appreciate it!

 

thank you

 

5467fbac476a2_trakt1.jpg

 

5467fbc3c03dd_trakt2.jpg

 

This is the detail page for Angry Boys

 

5467fbd231417_trakt3.jpg

 

This is the detail page for the 100

 

5467fbf5c8468_trakt4.jpg

Edited by mbc0
Link to comment
Share on other sites

Angelblue05

I'm just thinking since it didn't give any errors, it must skip them somehow....Are all the correct directories monitored by the Trakt plugin? 

 

54680a87abb44_plugin.jpg

Link to comment
Share on other sites

Hi,

 

I must have it configured correctly as I only have my TV & Movie Pools monitored and some TV and some Movies are syncing with Trakt and they are all in the same file location... I am sure this is going to be something daft! :-(  Thanks again for the brainstorm!

 

 

 

 

54685ef5d288b_trakt6.jpg

Link to comment
Share on other sites

If there is an issue, the best way to fix it is to capture it when it happens, and if it's repeatable, that's even better.

 

is there someone here who can do some coding with the trakt plugin? you might be onto something about it skipping the files for some reason. so what we need to do now is improve the logging in the plugin to capture that information.

  • Like 1
Link to comment
Share on other sites

saitoh183

If there is an issue, the best way to fix it is to capture it when it happens, and if it's repeatable, that's even better.

 

is there someone here who can do some coding with the trakt plugin? you might be onto something about it skipping the files for some reason. so what we need to do now is improve the logging in the plugin to capture that information.

 

here is hoping. Kind of sucks that this is a problem and i can get back my watched status from the backup plugin either...

Link to comment
Share on other sites

Ok, an update guys...Firstly, yes I do have all the metadata stored in the media folders, and I changed yesterday the option in metadata from the default xbmc to mediabrowser.xml I am not sure if this is the reason but Angry boys has changed to watched for both users in question! As far as I can tell this is the only series that has now updated since I first reported this error. The other thing I have noticed is that the .nfo file has a date stamp of 16/11/2014 instead of 14/11/2014 which all the other episodes have because that is when I re-installed the server from a complete uninstall removing all trace. BUT for example I have "The Life Of Rock With Brian Pern" which has .nfo files of 14/11/2014 but mb is reporting that as watched.  Where is mb getting the watched status from? if I look at the .nfo files they report the same information on the playcount? Both "Angry Boys" and "Bad Education" show the same data in their episode .nfo files even though "Angry Boys" is now showing as watched and "Bad Education" is still showing as unwatched?

 

 \Season 01\Angry Boys - S01E01 - Episode 1-thumb.jpg</poster>

  </art>
  <isuserfavorite>false</isuserfavorite>
  <playcount>0</playcount>
  <watched>false</watched>
  <resume>
    <position>0</position>
    <total>1696.008</total>
  </resume>
  <episode>1</episode>
  <season>1</season>
 
\Season 01\Bad Education - S01E01 - Parents' Evening-thumb.jpg</poster>
  </art>
  <isuserfavorite>false</isuserfavorite>
  <playcount>0</playcount>
  <watched>false</watched>
  <resume>
    <position>0</position>
    <total>1740</total>
  </resume>
 
5469ca0caf61d_trakt10.jpg
 
5469ca26533eb_trakt9.jpg

 

5469ca3df1093_trakt11.jpg

 

5469ca4dd57d6_trakt12.jpg

Link to comment
Share on other sites

Redshirt

I've posted a new trakt build that has additional logging. Please run the task with the new build and post the log.

Link to comment
Share on other sites

saitoh183

I wonder if the problem is because we have metadata saved to media folders? Im testing the new build now.

Link to comment
Share on other sites

This has worked before! I rebuilt my server a few months back from WHS2011 & Installed Windows 7 and then the trackt app restored all my watched status for both users... something must have changed?  I am running the trakt update now and will post the log :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...