damienhaynes / TraktRater

TraktRater is a tool written in C# to help users transfer user episode, show and movie user ratings and watchlists from multiple media database sites around the web.
653 stars 37 forks source link

Error importing movie ratings to trakt.tv #8

Closed ThyCaptain closed 11 years ago

ThyCaptain commented 11 years ago

Hi, I keep getting "Error importing movie ratings to trakt.tv" on the status report when I use this tool. No ratings are imported from IMDb. Any chance this could be fixed? Thank you in advance!

damienhaynes commented 11 years ago

Attach your IMDb rating CSV file and a picture of the application when you see the error.

ThyCaptain commented 11 years ago

Thanks for the fast reply.

Here you go:

trakt

https://dl.dropboxusercontent.com/u/16617279/ratings.csv

I don't know if I still need your help, though. For some reason, I think this time the tool worked fine, when I was taking this screenshot. I tried it about 10 times before and it didn't import any title. This time, I use a high contrast theme on windows and changed it to a normal theme to take a print screen, and although the same error popped up (as can be seen in the picture above), 2227 of my 2800 ratings were actually imported to Trakt. The other 500+ are probably missing from their database, so I think the issue is somehow resolved. Maybe there was some sort of incompatibility before. Thank you anyway, and thank you as well for this awesome tool. I probably wouldn’t use the site if I had to import all these ratings manually.

damienhaynes commented 11 years ago

Thanks, that is a strange issue if it has something to do with the colour/contrast.

I will have a look at your CSV file, 500+ seems like a lot missing from trakt, movies come from http://themoviedb.org so if it's there trakt will import it.

I wonder if it has anything to do with the size of your movies, trakt may have been having some server difficulties at the time. I will have a look at batching it in sizes of 100 or something to help if that is the problem.

I will let you know.

damienhaynes commented 11 years ago

ThyCaptain,

I tested with your ratings.csv, it looks like there was a timeout problem due to the large number of movies that trakt doesn't have. I increased it to 90secs from 30secs and was okay without error. The result was:

Total Movies: 2397 Total Movies with Ratings imported: 2232, Skipped: 165

Total Shows: 371 Total Shows with Ratings imported: 348, Skipped: 23

So it looks like the import worked as expected for movies trakt had, the timeout occurred because it tried to find the movies elsewhere (themoviedb.org) but probably failed to find them there as well. For TVShows, it would get them from thetvdb.com.

If you're interested in knowing what tvshows and movies were skipped I debugged it for you:

https://dl.dropboxusercontent.com/u/10516352/Trakt/shows.txt https://dl.dropboxusercontent.com/u/10516352/Trakt/movies.txt

damienhaynes commented 11 years ago

I think what I will do is send movies in batches of 500 or something and also set the timeout to 90secs in next version.

ThyCaptain commented 11 years ago

Thank you very much, once again. Yeah, I figured a lot of titles I've rated would be missing from themoviedb.org. Especially old short films, some tv documentaries and a few little known Portuguese titles (I'm Portuguese). My suspicion was confirmed by those lists. Still, with the increased timeout they're just 188 and that's fine. The most popular titles were imported and that's what matters. Thank you for taking the time to look into it. ;)