2018-03-20, 06:55
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:
oScan, kodi use this to determine if it needs to scan sub-dirs:
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.
In CVideoInfoScanner:
![Big Grin Big Grin](https://forum.kodi.tv/images/smilies/grin.png)
So the condition is settings.recurse > 0.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;
}
}
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.