luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
412 stars 20 forks source link

Titles might not be exactly the same between plex and jellyfin causing them to be skipped #12

Closed luigi311 closed 2 years ago

luigi311 commented 2 years ago

Jellyfin will use special characters for titles of shows such as Naruto Shippūden while plex will not and will instead do Naruto Shippuden causing them to not match due to an initial check of titles. We can swap this to use the provider ids so it will be more accurate.

luigi311 commented 2 years ago

structure can be as follows assuming a dictionary is allowed to be used as a key in a dictionary. Needs some experimenting to get something that makes sense and catches more things like this. I wanted to include title just so its easier for the user to see it in the log compared to only seeing the imdb ids so they dont have to search for to see if something is included.

{
   "username":{
      "Library":{
         {
            "title":"Naruto Shippūden",
            "imdb":"tt0988824"
         }:{
            "Season 1":[
               {
                  "imdb":"tt0990165",
                  "tvdb":"320623"
               }
            ]
         }
      }
   }
}
luigi311 commented 2 years ago

Titles are no longer used anywhere anymore and everything is handled via IDs now. This has been implemented in ca84bbb19ddb4e27ea57183a6052269e175eaf5b