namespace CoverSources import System import System.Drawing import System.Text import System.Text.RegularExpressions import util class CoverIsland: static SourceName as string: get: return "CoverIsland" static SourceCreator as string: get: return "Alex Vallat" static SourceVersion as decimal: get: return 0.4 static def GetThumbs(coverart,artist,album): if not String.IsNullOrEmpty(artist): firstLetter = artist[0] elif not String.IsNullOrEmpty(album): firstLetter = album[0] else: return //Nothing to search for //Get results (trying each page in turn) sequence = 1 while sequence < 100: //Sanity check, don't expect there to be more than 100 pages per letter try: sequenceChar = "" if(sequence > 1): sequenceChar = sequence.ToString() listPage = GetPage(String.Format("http://www.coverisland.com/copertine/Audio/{0}{1}.asp", firstLetter, sequenceChar)) except e as System.Net.WebException: //Catch the 404 and break out of the loop - no more pages left return //No results found //Check if results are found here resultsRegex = Regex(String.Format("