2013-07-06, 01:43 AM 
	
	
	
		Initially I thought I had this working but it appears it doesn't. Not sure what I'm missing here. Trying to remove characters from channel names which are invalid for file names...However when I look at the logging for the channel 5*, I see......so the asterisk obviously isn't being removed and my 5.png file obviously isn't being found. I just can't see what isn't working - anyone any ideas?
Cheers,
Brian
	
	
	
Code:
char[] InvalidPathChars = System.IO.Path.GetInvalidPathChars();
...
foreach (String chanName in chanNamesList)
{
    StringBuilder sb = new StringBuilder(chanName);
    foreach (char item in InvalidPathChars)
        sb.Replace(item.ToString(), "");
    String chanLogoFilename = sb.ToString();
    Log.WriteLine("GenerateChannelLogosFile() - Looking for logo: " + chanLogoFilename);
    // Append .jpg, .png and .gif in turn to try to find channel logo image file
    ...
}Code:
GenerateChannelLogosFile() - Looking for logo: 5*Cheers,
Brian

