Posts: 13,692
Joined: Mar 2010
Reputation:
507
PatK
Team-Kodi Member
Posts: 13,692
When a file is moved from one physical location to another, the internal Kodi library path is no longer correct and the meta-data is not found. The movie would have to be re-scraped (if the meta-data was exported to separate files, the re-scrape would be local and quick). At this point, it sounds like you have lost the library listings for the select files you moved, file mode allows you to see the file (artwork might show) and even play it.
Posts: 24
Joined: Sep 2013
Reputation:
0
Hello and sorry for the delay.. (I was away for some time).
After enabling the debug log I can see that when trying to fetch the info of the file Kodi tries to:
10:55:35.763 T:4180 DEBUG: CInputManager::OnKey: i (0xf049) pressed, action is Info
10:55:35.768 T:4180 DEBUG: CVideoDatabase::GetMovieId (smb://192.168.xx.xx/!Sci-Fi/xxx.mkv), query = select idMovie from movie where idFile=17441
10:55:35.775 T:4180 DEBUG: CVideoDatabase::GetEpisodeId (smb://192.168.xx.xx/!Sci-Fi/xxx.mkv), query = select idEpisode from episode where idFile=17441
10:55:35.776 T:4180 DEBUG: Keyboard: scancode: 0x17, sym: 0x0069, unicode: 0x0000, modifier: 0x0
After trying to query mysql for the idFile=17441 ("sql cmd not allowed") or the movie itself with the c00 field I can find no entry..
Beforing moving it it was exported (multiple files +nfo). When I try now to scan for new content it finds nothing. Is there a way to force detection for these items??
Posts: 593
Joined: Jan 2014
You don't detail how you are scanning... Are you just selecting Update Library? Try this...
Go to Videos>Files>Your Source.
Navigate to the Movie
Select "Information"
If it is not in the library, it will begin to scrape the title. If you have local nfo, then answer NO when it asks to "Ignore and scrape from Internet"
Also, don't forget to delete your old movie entries from the library, otherwise you will have two listings for the same movie.
Posts: 24
Joined: Sep 2013
Reputation:
0
The problem is that the "Information" option is not available (missing on the right click popup, 2nd screenshot on the original post) on that items and when I press "I" on the keyboard to force the action I get nothing, just the above entries on the log file (previous post).
Posts: 1,772
Joined: Aug 2009
Reputation:
24
Derek
Posting Freak
Posts: 1,772
have you ran clean database? try that.
Posts: 593
Joined: Jan 2014
And you might want to provide a debug log as instructed here...
http://kodi.wiki/view/Log_file/Easy
After "enabling" debugging, restart Kodi, update library then Post Log.
Posts: 1,071
Joined: Mar 2013
Reputation:
50
Whenever you move your data (or if you have attached USB drives that lose their driver order in Windows), you need to perform 3 steps in Kodi.
1. Update your Database in Kodi.
2. Clean your Database in Kodi.
3. Update your Database again.
So there are a couple of assumptions to the above...
1. The New location is already part of your Shared environment in Kodi. For example, if you were sharing 2 USB drives (drives E:\Movies and F:\Movies1) in Windows, and their drive letters got changed (because Windows does that sometimes) to (G:\Movies and H:\Movies1). The above three steps would fix any issues with the Media listing in Kodi.
2. However, if you have a new location (in your case a new NAS), that wasn't setup originally in Kodi as a location for your Movies, the three steps above would not work. You should be able to fix this, by adding your new NAS source to Kodi and making the location to containing Movies. Then perform the three steps above and it should fix your issue.
3. If neither of the above work, then you need to remove your Movies sources and re-add them back into Kodi.
Hope this helps you.
Posts: 24
Joined: Sep 2013
Reputation:
0
Well Update + Clean fixes nothing.
But I found out the issue ONLY occurs in the cases where the Source is multipathed with more that 2 paths (in all the cases).
In the below case ALL the problematic ones reside on the 3rd path "smb://192.168.178.30/HDMovies10/!Sci-Fi":
<source>
<name>Sci-Fi</name>
<path pathversion="1">smb://192.168.178.30/HDMovies6/Sci-Fi/</path>
<path pathversion="1">smb://192.168.178.20/hdmovies2/!Sci-Fi/</path>
<path pathversion="1">smb://192.168.178.30/HDMovies10/!Sci-Fi/</path>
<allowsharing>true</allowsharing>
</source>
So I think that it may be some kind of multipath related bug!
Posts: 1,071
Joined: Mar 2013
Reputation:
50
Or maybe it has to do with the "!" you put in the 3rd one.
smb://192.168.178.30/HDMovies6/Sci-Fi
smb://192.168.178.30/HDMovies10/!Sci-Fi
Never a good idea to use special characters for folder names (or filenames, etc) as it can cause issues. Try renaming it (smb://192.168.178.30/HDMovies10/Sci-Fi, and then perform the Update, Clean, Update again.
Posts: 24
Joined: Sep 2013
Reputation:
0
The thing is that most of my paths have the ! char but the problem occurs only when there are more than 2 paths.!