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

Listal import not working #105

Open mikemanger opened 5 years ago

mikemanger commented 5 years ago

The log file correctly says it detects the 1038 movies in the xml file but then says "importing 0 Listal movies as watched".

damienhaynes commented 5 years ago

Maybe because they're already marked as watched on trakt? You can attach your log and I can know more.

mikemanger commented 5 years ago

I only have 3 things in my trakt account. I tried importing just 1 movie with a rating and got the same. The xml files look the same as the example in #4 .

Not much to see in the log file but here it is:

2019-09-22 10:49:23.673 [INFO] [][01]: Exchanging refresh-token for access-token...
2019-09-22 10:49:23.678 [DEBG] [][05]: REDACTED
2019-09-22 10:49:23.868 [DEBG] [][05]: Response: REDACTED
2019-09-22 10:49:23.887 [INFO] [][01]: Starting import from Listal
2019-09-22 10:49:23.922 [INFO] [][01]: Found 1038 movies in Listal export file
2019-09-22 10:49:23.931 [INFO] [][01]: Found 0 movies with ratings
2019-09-22 10:49:23.939 [INFO] [][01]: Found 167 tv shows in Listal export file
2019-09-22 10:49:23.945 [ERR ] [][01]: Found 0 tv shows with ratings
2019-09-22 10:49:23.952 [INFO] [][01]: Finished import from Listal
2019-09-22 10:49:23.978 [INFO] [][01]: Import Complete!
mikemanger commented 5 years ago

I've tried compiling without the .Where(m => m.Rating > 0) and that seems to have kinda fixed it (things are in history which is probably better for me as I haven't rated all films). Just got to move things to my watchlist and add the 500 or so items that didn't get found 😟

damienhaynes commented 5 years ago

I will be away for 2 week and can help when Im back...but by the looks of that code snipet, that's to ensure we're only sending ratings for items that have a rating. We then send those movies as watched (since if you rated them, you watched them).

mikemanger commented 5 years ago

On listal you can mark an item as watched without giving it a rating.

It looks like the issue is that the XML serializer is not parsing any of the listal: namespaced elements:

xmlnamespace

I'll try and debug it, have a nice break! 🌴

WouterCypers commented 4 years ago

Hi @mikemanger, have you been able to look at this issue? Otherwise, I could try to fix it.

mikemanger commented 4 years ago

@WouterCypers No, I didn't get very far!

LukasTD commented 4 years ago

Hey, I'm also running into this issue, wondering if a solution was found.