xbmc/xbmc — comment on commit dbf85d5dd420517fb9e20aa0d619e7d4f4624734
File:  line 0
By jmarshallnz:

Ok, the problem is that the item is a folder, so we lookup using CVideoInfoTag::m_strPath. This is plainly wrong, as the item represents a file. The fix is changing the item.m_bIsFolder check to item.GetVideoInfoTag().m_strFileNameAndPath.IsEmpty().

Need to check for potential issues with shows + seasons.