Hi
I really like Woofy, and I tried to create a definition for Ctrl+Alt+Del:
<?xml version="1.0" encoding="utf-8"?> <comicInfo friendlyName="Ctrl+Alt+Del" author="Lynexis"> <startUrl><![CDATA[http://www.cad-comic.com/cad/]]></startUrl> <firstIssue><![CDATA[http://www.cad-comic.com/comics/cad/20021023.jpg]]></firstIssue> <comicRegex><![CDATA[/comics/cad/[0-9]{8}\.jpg]]></comicRegex> <backButtonRegex><![CDATA[<a\shref="(?<content>/cad/[0-9]{8})"\sclass="nav-back">Back</a>]]></backButtonRegex> <captures> <capture name="date" ><![CDATA[<img\ssrc="/comics/cad/(?<content>[0-9]{8})\.jpg"\salt="[\w()-]*"\s/>]]></capture> <capture name="alt" ><![CDATA[<img\ssrc="/comics/cad/[0-9]{8}\.jpg"\salt="(?<content>[\w()-]*)"\s/>]]></capture> </captures> <renamePattern><![CDATA[${date}_${alt}]]></renamePattern> </comicInfo>
Now the debug works fine for the latest strip, as well as the download, but when Woofy gets to the 2nd strip, it crashes with the typical Windows "Woofy has encountered an error and must be closed" error.
The errorLog.txt looks like this:
2010-06-10 14:30:40,511 [3] ERROR An exception has occured.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Woofy.Core.ComicsProvider.<>c__DisplayClass5.<GetFileName>b__3(Match match)
at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat)
at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
at System.Text.RegularExpressions.Regex.Replace(String input, String pattern, MatchEvaluator evaluator)
at Woofy.Core.ComicsProvider.GetFileName(String fileLink, String renamePattern, IDictionary`2 captures)
at Woofy.Core.ComicsProvider.DownloadComics(Int32 comicsToDownload, String startUrl)
at Woofy.Core.ComicsProvider.<>c__DisplayClass1.<DownloadComicsAsync>b__0(Object )
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
What did I do wrong?