trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
322 stars 149 forks source link

Missing movies between XBMC and Trakt #40

Closed dpons039 closed 11 years ago

dpons039 commented 11 years ago

Hello,

Some feedbacks.

After some syncronizations...

Trakt Movies: 392 XBMC Movies: 432

Trakt is missing some movies, but I can't know wich ones, there's no information at the log file from xbmc.


Trakt Shows: 70 XBMC Shows: 79

Some series appear to be missing, the script can't find series in trakt. Check log.


Log from XBMC:

http://pastebin.com/8mCaUsgs

And it keep for a couple hours on the last step.....

PS: I'm not sure what Clean library should do... My common sense says that should make trakt and xbmc library to look the same. I'm wrong?

Trakt: dpons039

nate1280 commented 11 years ago

Looking at your log, just focusing on the movie part (for now), there are 4 options for movies in the plugin settings, and based on whats in your log, you don't have the option "Add movies to trakt collection" selected. If you did, you would also see (this is from one of my logs)

16:15:25 T:2380  NOTICE: [trakt] [Movie Sync] Getting movie collection from trakt.tv
16:15:29 T:2380  NOTICE: [trakt] [Movies Sync] Checking for XBMC movies that are not on trakt.tv
16:15:29 T:2380  NOTICE: [trakt] [Movies Sync] trakt.tv movie collection is up to date

In your log before it gets seen movies (the large json request you see).

If this option is not enabled, it won't add any movies to your trakt collection that exist in xbmc.

Also, it seems you might not have the 4th option enabled, "Clean trakt movie collection", because if you did, it should try to remove from trakt what doesn't exist in xbmc.

I'm just basing this on what bit the log says, compared to what could be there. And I suspect your TV options are the same.

If your options are set for all 4 in each, then there should be more log entries indicating that its adding movie/tv shows to trakt, and possibly removing what doesn't exist.

And what do yo mean by "it keeps for a couple hours on the last step...", it doesn't get past

22:33:53 T:2664428608  NOTICE: [trakt] [Episodes Sync] 7 shows(s) shows are missing playcounts on XBMC

And you never see the following?

16:16:01 T:2380  NOTICE: [trakt] [Episodes Sync] Complete
dpons039 commented 11 years ago

Hello, About the Collection: Yes it seems like that option got unchecked. I just activate it back and it's working now.

There still a difference of 32 movies with Trakt. I'll have to check why.

The reason may be due to missing movie entries in Trakt. Can we log this some way?

edit: I found that "Entre Sabanas" don't appear in Trakt as collection, but on the log 1 says that it did. The second Sync, seems to be all OK, and nothing left to sync.


22:33:53 T:2664428608 NOTICE: [trakt] [Episodes Sync] 7 shows(s) shows are missing playcounts on XBMC

When updating the XBMC playcounts is takes a lot of time; the COMPLETE appeared after 2-3 hours.


What about:

06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Ally McBeal on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Buffy the Vampire Slayer on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Caprica on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Fresh Meat on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find How To Be A Gentleman on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Hung on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Revenge on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Sanctuary on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find Single Ladies on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find The Exes on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find The Glades on trakt.tv 06:31:50 T:2678060096 NOTICE: [trakt] [Episodes Sync] Failed to find The Newsroom (2012) on trakt.tv

Log 1: http://pastebin.com/cnDchX80 Log 2: http://pastebin.com/CvHtcRqh Regards, Dave

N3MIS15 commented 11 years ago

It does take a long time first run if there are a lot of things to add playcounts to. That is an XBMC thing, not much can be done from the scripts point of view.

As for the missing shows/movies, most of the time this is because of incorrect metadata. Either in the XBMC library or I have found a case where a movie's metadata was missing from trakt.

Showing which movies were missed shouldn't be a problem. If you post a new log with the remaining 7 shows, we should be able to figure out why they are being missed. EDIT: didnt see the log first time..

dpons039 commented 11 years ago

Hello,

  1. Yes seems to be coz of that. Or coz the raspberry was processing too much stuff at same time :/
  2. I can't really know the movies missing, it's hard to find 37 between 437
  3. The shows are on my previous comment. They are always the same ones.

I'm out of home so I can't try to refresh manually the metadata of xbmc.

Dave

dpons039 commented 11 years ago

Hello back.

Regarding the movies:

I found out that there are some movies not marked correctly in the collection. At least 5 of them. / The others are coz of duplicated files I will try to filter the XBMC and Trakt.tv information so I can filter the missing.

About shows I'll see later today.

nate1280 commented 11 years ago
NOTICE: [trakt] [Episodes Sync] Failed to find Ally McBeal on trakt.tv

Log entries like these can just be ignored, alls it means is that show has no watched episodes marked on trakt, from what I've been able to see, I have 22 of them in my log every time.

rectifyer commented 11 years ago

Is there still any issue here?

ghost commented 11 years ago

I was just thinking that log entries like: NOTICE: [trakt] [Episodes Sync] Failed to find Ally McBeal on trakt.tv could be more detailed what's actually going on with sync.

Also I have few movies which are trying to get added to trakt.tv although they already are in my collection on site. [Movies Sync][AddToTrakt] {u'movieid': 10, u'title': u'11-11-11', u'label': u'11-11-11', u'imdbnumber': u'tt1712159', u'year': 2011, u'playcount': 0} reply from trakt is always that they already exists in trakt Library.

Last thing that movies with xbmc playcount > trakt playcount are trying to update playcount on trakt.tv but are skipped with already_exists status and original trakt playcount is preserved (althought xbmc has higher playcount)... I guess this is intentional behaviour, because then trakt site wouldn't have correct number of playcount / playdate entries then (ie. playcount 4, but only one playdate entry), right?

nate1280 commented 11 years ago

NOTICE: [trakt] [Episodes Sync] Failed to find Ally McBeal on trakt.tv

just means that it exists on trakt, but no episodes have been marked as watched/scrobbled yet.

ghost commented 11 years ago

Yea, I found that out after reading this topic, what I meant is that maybe it could be properly described in the log file itself ;)

dpons039 commented 11 years ago

Yeah. That's right.

What I realize is that there should be a notification on the log of the Script that should indicate the number of movies that XBMC have and that Trakt have.

This would help find posible missing movies/episodes that are miss configured on any of both sides.

I went over all my XBMC and I found that the missing movies where the ones with double parts (xbmc counted them twice and same for multiple language files)

nate1280 commented 11 years ago

Can have it say

[Movies Sync] Movies on trakt.tv (607), movies in XBMC (605).
[Movies Sync] Complete.

Instead of just complete, would this be helpful?

dpons039 commented 11 years ago

Yeah, that would be great! Thumbs up!

rectifyer commented 11 years ago

This debug is merged in to the 2.2.0 testing version.