2017-12-03, 21:12
System: LibreElec on Raspberry Pi2, Kodie 17.6, movies on samba network share (movie type), movie folder content: (movie_file_name.mkv, _imdb.nfo)
Problem: The Video Info Scraper only considers nfo files matching the movie file name, even if the folder only contains one movie file and one nfo file. As soon as I rename the nfo file to the name of the movie file, it works. Regarding the source code, it should also work with a nfo filename different from movie file name.
I've taken a look into VideoInfoScanner.cpp: CVideoInfoScanner::GetnfoFile(). As far as I understand, if "m_bIsFolder" is true, it should work with any nfo files within the folder (GetDirectory with parameter ".nfo") . "m_bIsFolder" should be true in the scenario above (or not?!) . But in my case, it only works, if I name the nfo file "movie_file_name.nfo"
I guess FileItem.cpp_ CFileItem::SetFromVideoInfoTag sets m_bIsFolder to false and it stays in that state.
This is the first time I had contact with the Kodi sources, so it is pretty hard for me to understand everything. I also have no debug environment and everything, just went thru the sources via GitHub... Maybe someone with a little bit more experience with Kodi can take a look into it?!
Regards
Arne
Problem: The Video Info Scraper only considers nfo files matching the movie file name, even if the folder only contains one movie file and one nfo file. As soon as I rename the nfo file to the name of the movie file, it works. Regarding the source code, it should also work with a nfo filename different from movie file name.
I've taken a look into VideoInfoScanner.cpp: CVideoInfoScanner::GetnfoFile(). As far as I understand, if "m_bIsFolder" is true, it should work with any nfo files within the folder (GetDirectory with parameter ".nfo") . "m_bIsFolder" should be true in the scenario above (or not?!) . But in my case, it only works, if I name the nfo file "movie_file_name.nfo"
I guess FileItem.cpp_ CFileItem::SetFromVideoInfoTag sets m_bIsFolder to false and it stays in that state.
This is the first time I had contact with the Kodi sources, so it is pretty hard for me to understand everything. I also have no debug environment and everything, just went thru the sources via GitHub... Maybe someone with a little bit more experience with Kodi can take a look into it?!
Regards
Arne