xbmc/xbmc — pull request #1730 by dragonflight (2012-11-04 23:39:45+00:00)
Title: Bug fix and enhance CleanString

BUG
the RE was done against strFileName, but the replace was done with strTitleAndYear
which was ok unless CleanDateTime tried to remove something from the front of strFileName
Enhancements
Allow CleanString to match starting at the front and remove only the match
Prevent cleanStrings from matching entire filename

The enhancements should be guaranteed to be backward compatable as they only come into effect if the old version would have returned an empty string