[2018-07-06 18:13:57,716] [177259 ] [Thread10 ] [INFO ] - Trakt: found 303 collected movies available to sync in media library
[2018-07-06 18:14:00,665] [180208 ] [Thread10 ] [INFO ] - Trakt: trying to add 303 collected movies to trakt collection
[2018-07-06 18:14:17,037] [196580 ] [Thread10 ] [INFO ] - Trakt: successfully added 2 collected movies to trakt collection
[2018-07-06 18:13:57,717] [177260 ] [Thread10 ] [INFO ] - Trakt: found 219 watched movies available to sync in media library
[2018-07-06 18:13:57,723] [177266 ] [Thread10 ] [INFO ] - Trakt: trying to add 219 watched movies to trakt watched history
[2018-07-06 18:14:00,658] [180201 ] [Thread10 ] [INFO ] - Trakt: successfully added 219 watched movies to trakt watched history
Italy
Italy
I had exactly the same thought in the morning, but Lehmden was faster.Hi.
Is it possible to restore the library from those json files too? Asking because of a possibility to transfer e.g. watched flags from one installation to another in a fast (offline) way.
Italy
@Alberto83
Hold on a bit with the manual testing. I'm preparing something more automatic. I've added a new backup library button. After hitting it, two new json files will be created in your trakt MP2 profile directory. One contains your MP2 media library movies and the second one your series. This button works independently from trakt (no need to authorize trakt). Those files contains only the needed data for a trakt sync (imdb, year, date added to db, etc).
Next, I wrote a test (this time an integration test) in where I exchange the mocked trakt client with a real one and instead of some test data I set the real data from the previously saved json file. Then I'm calling the sync with trakt method and voila all my movies are send to trakt with just one click from within VS
By adding few asserts I can verify if the sync was OK or not.
The trak lib provides also some other usefully methods, like RemoveWatchedHistoryItems. So, to remove some (or all) watched movies will be also easy.
I expected this kind of questionIs it possible to restore the library from those json files too?
Exactly as I expected this, perfect, thanks...What do you think about the following: