xbmc/xbmc — pull request #670 by jmarshallnz (2012-02-01 03:58:33+00:00)
Title: Fanart fixes

This fixes a couple of situations, both for the files node, both concerning a layout of /-fanart.jpg for fanart.

1. We can now find this and assign to the folder (regardless of stacking)

2. If user doesn't have stacking on, so that the folder can be navigated into, then we can assign the same fanart to the .ext movie.

The trick is that previously if we had a videoinfotag object and the item was a folder we would use CVideoInfoTag::m_strPath. This covers tvshows primarily. Instead, we check whether m_strFileNameAndPath is empty - if not, we use it. This also covers tvshows as they don't set m_strFileNameAndPath.