Closed Spacetech closed 8 months ago
Awesome, thanks so much @Spacetech!
Tested this on my setup after applying beta 3 & this is working perfectly.
I confirm that this worked for me. I tried without deleting the video dbs, just reset kodi database and that worked. Thanks!
Although after relaunching Kodi I see a prompt comes up in the top right that simply says:
Unique constraint failed:video version.idFile
Although after relaunching Kodi I see a prompt comes up in the top right that simply says:
Unique constraint failed:video version.idFile
Do you know if that happened when adding or removing a movie? Can you share the error that showed up in your kodi log for that?
I'm wondering if my DELETE FROM videoversion
statement is incorrect.
Edit: Nevermind, should be solved now. Had to use INSERT OR REPLACE INTO
similar to the insertion into the movies
db. That's because this method could be called again for an existing movie
Although after relaunching Kodi I see a prompt comes up in the top right that simply says: Unique constraint failed:video version.idFile
Do you know if that happened when adding or removing a movie? Can you share the error that showed up in your kodi log for that? I'm wondering if my
DELETE FROM videoversion
statement is incorrect.Edit: Nevermind, should be solved now. Had to use
INSERT OR REPLACE INTO
similar to the insertion into themovies
db. That's because this method could be called again for an existing movie
Have replaced the contents of that file and restarted Kodi - all good now no error :-)
@Spacetech Glad it was to some good use here. :)
How long will it take for this to make it into the PKC Nexus Beta?
Also, could someone please share instructions for how to install this manually?
Thanks!
Superseded by https://github.com/croneter/PlexKodiConnect/pull/2028
Kodi 21 changed the
movie_view
db query, which broke support for movies added by PKC. We now need to insert a row into thevideoversion
table for each movie. Check this issue for more information. @AmonFlorian created a fix for jellyfin-kodi, which I applied to PKC.Changes
videoversion
table (when it exists) when adding/removing moviesvideoversiontype
table when resetting the database. This table is created & prepopulated by kodi.Testing instructions:
MyVideos*.db
files to ensure you start from a good state. !!videoversiontype
tableFixes #2025