Bug File path recursive setting not working?
#1
I pulled the latest source from github and built on linux. What I discovered is that the file path recursive setting seems not working. Not sure if I get wrong anywhere. I tried to add a path in video section and found kodi scrapes for movies in the sub-dirs no matter I enable the recursive or not. I debuged with the source and found these:
In CVideoInfoScanner:Big GrinoScan, kodi use this to determine if it needs to scan sub-dirs:
     
cpp:

      // if we have a directory item (non-playlist) we then recurse into that folder
      // do not recurse for tv shows - we have already looked recursively for episodes
      if (pItem->m_bIsFolder && !pItem->IsParentFolder() && !pItem->IsPlayList() && settings.recurse > 0 && content != CONTENT_TVSHOWS)
      {
        if (!DoScan(pItem->GetPath()))
        {
          m_bStop = true;
        }
      }
So the condition is settings.recurse > 0.
I then added log in VideoDatabase.cpp and here is what I got:
When I disable recursive, the saved value is 1.
When I enable recursive, the saved value is 2147483647. So it seems no matter which setting, settings.recurse is always >0.
Reply

Logout Mark Read Team Forum Stats Members Help
File path recursive setting not working?0