Posts: 26
Joined: Aug 2017
Reputation:
0
Team
Recently updated my Nvidia Shield to 7.2.2 ...source for TV/Movies is on my NAS
Kodi (17.6) now appears to have "lost" information from its database (which is also on the Shield).
My TV shows has lost entire seasons (even though they still exist on the NAS), episodes are missing and on top of this all my watched/unwatched imformation has gone (everything is unwatched)
Running an update from Kodi does nothing to change this
I assume that somehow the Kodi database has been corrupted?
Anyone know how to remedy this?
Cheers
Sprogger
Posts: 26
Joined: Aug 2017
Reputation:
0
Thanks Klojum
As you say not "if" but "when" ... I did not realise that you can backup the Kodi DB... will have to look into that once I get back to normal again.
Not SQL literate so will not go down that path ..
Would the recommendation be to delete the old database and rebuild from scratch?
Cheers
Sprogger
Posts: 14,211
Joined: Nov 2009
Reputation:
707
Klojum
Lost connection
Posts: 14,211
I have no idea what happened on your Shield TV during the 7.2.2 update. AFAIK, Kodi was not running on my Shield TV when the upgrade began. Perhaps that is a clue.
Kodi has no SQL database error fixing functionality, so any hint of a corruption would be a sign to simply start over scraping your media collection.
Mind you, a Video Library Export is also basically a type of backup, and also includes the watch status and resune points.
Kodi uses SQLite database files, so you could simply copy those as files to a secure location.
Posts: 26
Joined: Aug 2017
Reputation:
0
Hi Klojum
I think you are correct .. Kodi is normally running on my Shield so I suspect it got broken when Android installed its update ... will have to remember to shut Kodi down when I next update.
I can find a file called MyVideos107.db in Android-data-org.xbmc.kodi-files-kodi-userdata-Database. (there is a separate file called Music60.db.. I assume this is my Music library)
Is this the database and if so do I just delete it and run an update from Kodi?
Cheers
Sprogger
Posts: 14,211
Joined: Nov 2009
Reputation:
707
Klojum
Lost connection
Posts: 14,211
It's up to you to delete one or both databases. You'll need to re-enter your sources because those are also stored in the databases. Set the content and rescrape your videos (and music). Afterwards, as far as possible set all your watched flags manually, exit Kodi and make a copy of the database file(s).
Copying the whole kodi profile folder as a backup would also be a good idea.
Posts: 26
Joined: Aug 2017
Reputation:
0
Team
Apologies for resurrecting this old thread...
I am now running Kodi 18.3 and last night when I tried to play a video I got the message "cannot start this video while library is updating"...
I rebooted the Nvidia Shield and now when I look in my TV shows library .. I can see the actual TV Shows and their seasons but when I click on a Season folder I get no episodes (just two dots) ..
I think I have managed to corrupt the database...
I was going to repeat the steps I followed last time
Am I correct in assuming that the database (TV/Movie) under Kodi 18.3 is now called MyVideos116.db?
Many thanks
Sprogger
Posts: 26
Joined: Aug 2017
Reputation:
0
Thanks Klojum
So I renamed the MyVideos116.db to OldVidDB ... restarted the Shield, fired up Kodi
It starts, appears to SMB link to my NAS, and then nothing... my main menu in Kodi no longer has TV Shows or Movie icons ..
Is there a way to force Kodi to read the whole library?
Cheers
Sprogger
Posts: 26
Joined: Aug 2017
Reputation:
0
Thanks again Klojum
The unfortunate thing (or fortunate) is that the Shield and Kodi have been running without issues for a while ...
So when this sort of issue happens I have to remember how I initially set it up ...
Will investigate re-adding source to the video options and see how I go
Cheers
Sprogger