Kodi Community Forum

Full Version: Kodi 18: suddenly most of my movies dissapeared from Library, files are still visible
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
I'm using Kodi 18 on nVidia Shield for several months. I have two sources of movies/tv shows: Netflix plugin (by asciidisco) and my personal NAS, which is some Intel i3 powered custom build running OpenMediaVault.
Totally I have mapped 4 sources in my Library:
- movies from NAS
- TV from NAS
- movies from Netflix
- TV from Netflix

Suddenly, yesterday overnight, most of my NAS TV shows dissapeared from my Library - Kodi is showing only 4 of TV shows from NAS.
The files are still physically on disk, moreover, Kodi is properly showing them via File Explorer and plays them, only they are not showing in Library...

I've tried several timesto restart Shield and to Refresh Library.
The only result is that all of my TV shows (when viewed from File Explorer in Kodi) are marked as watched (but it's not a correct state), but still I see only 4 shows while entering to Library.

I cannot post log right now, as I'm currently in my work. I will do it at night.
But maybe someone have already encountered a "bug" like this one?
(2019-01-29, 13:09)raven6679 Wrote: [ -> ]But maybe someone have already encountered a "bug" like this one?
Nope,only one guy reported fully empty MySQL databases where his NAS access may have been compromised.

Did Kodi auto-update already, or did the entries from your video database get actually deleted? Perhaps your database got corrupted?

Provide us a debug log (wiki) via a pastebin website, so we can see some internals.
I'm on 18 beta from the beginning, so frankly, I didn't pay attention was there an update.
I will provide log at night.
This is my Kodi log: https://pastebin.com/sviwk2fn
These are my sources: https://pastebin.com/RG3NnG0k

Netflix sources are no longer playable, they are empty.

I have 52 TV shows on my NAS and SMB is mapped properly, I can access and play them directly in Kodi (via Videos menu):

Image

But my Library shows only 4:

Image
Enable Debug Mode in Settings>System Settings>Logging.

Your advancedsettings.xml <network> tags are outdated and do not work.
@raven6679

I don't know how you have set up your Sources, but they seem to be quite confusing.

Your problem is two-fold...
xml:
GetEpisodeList: Searching 'http://www.thetvdb.com/api/1D62F2F90030C444/series/293491/all/en.zip' using The Movie Database scraper
1. You must have some nfo files around somewhere. Or you are adding new episodes to an existing show that has been in your library for over 1 year. You are using TVDB API v1, but we are on TVDB API v2
2. the <episodeguide> URL http://www.thetvdb.com/api/1D62F2F90030C...all/en.zip is from TVDB, but you have TheMovieDB scraper set.

Refresh the shows, making sure you ignore any NFO Files when asked.
Thank you for your response.

(2019-01-30, 10:19)Karellen Wrote: [ -> ]@raven6679
Your problem is two-fold...
xml:
GetEpisodeList: Searching 'http://www.thetvdb.com/api/1D62F2F90030C444/series/293491/all/en.zip' using The Movie Database scraper
1. You must have some nfo files around somewhere. Or you are adding new episodes to an existing show that has been in your library for over 1 year. You are using TVDB API v1, but we are on TVDB API v2
Yes, I'm using TinyMediaManager to get .nfos for movies & TVs.
Should I then delete all the .nfos already created and update library from start?
How do I toggle to TVDB API v2?

(2019-01-30, 10:19)Karellen Wrote: [ -> ]2. the <episodeguide> URL http://www.thetvdb.com/api/1D62F2F90030C...all/en.zip is from TVDB, but you have TheMovieDB scraper set.
I'm afraid I don't understand this. Should I set something differently in Library settings in sources to use another scraper?
Would you be so kind to clarify?
(2019-01-30, 11:00)raven6679 Wrote: [ -> ]Yes, I'm using TinyMediaManager to get .nfos for movies & TVs.
Ok, TMM is current with its API's. I would guess then that they are old NFO Files.

(2019-01-30, 11:00)raven6679 Wrote: [ -> ]Should I then delete all the .nfos already created and update library from start?
I am also guessing that as the NFO Files are quite old, they are the original ones so you haven't saved any personal changes or exported Watched status, Play Count and Resume Points. If this is the case then deleting and scraping from scratch is the easiest and quickest solution.

(2019-01-30, 11:00)raven6679 Wrote: [ -> ]How do I toggle to TVDB API v2?
You don't. The TVDB scraper is using v2 by default and the TVDB site is only offering v2. But you are using TheMovieDB-TV Shows scraper, so none of that matters as they use a different system.

(2019-01-30, 11:00)raven6679 Wrote: [ -> ]I'm afraid I don't understand this. Should I set something differently in Library settings in sources to use another scraper?
Would you be so kind to clarify?
The default TV Show scraper used to be TVDB, up until around October 2018. But with all the issues that TVDB is experiencing, we decided to make the default scraper TheMovieDB-TV Shows. You would never have noticed this change, but now that you are updating your version and performing a fresh install, you are experiencing the change.

If you have some NFO Files that you need to keep and want to reuse, then all you need to do is remove the following code from the tvshow.nfo. But using this method requires all episodes to have nfo files, and you won't be able to add new episodes when needed. I think this is a good time to freshen up the library by using the Kodi scrapers. Smile
xml:
<episodeguide>
<url cache="76290.xml">http://www.thetvdb.com/api/6E82FED600783400/series/76290/all/en.zip</url>
</episodeguide>
It seems, that deleting all .nfos helps.
Thank you very much for your help!
@raven6679

Great to hear it worked.

Consider using the Import-export library (wiki) function of Kodi. It will export your library to NFO Files. Any changes you make in your library, like Watched status, play counts, resume points, adjusting movie sets etc will all be captured in the export. So if you have a disaster, Kodi can just rescan the nfo files and your library will be back to exactly how it was from the moment of the latest export.

I run it on my library every two weeks.
Thread marked solved.