Jump to content
Ketarin forum

Export bug Ketarin 1.5 b5


Gozi
 Share

Recommended Posts

Hi,

 

this is the output for an exported job.

XML encoding seems not to work correctly. Can anyone confirm?

 

Greetings

Gozi

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="4499f9bc-dbe0-4c78-a4a2-01a9fea07b35">
   <SourceTemplate><?xml version="1.0" encoding="utf-8"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <WebsiteUrl><placeholder name="Enter the Softopedia url" value="http://www.softpedia.com/get/Internet/Other-Internet-Related/WGET.shtml" /></WebsiteUrl>
   <UserNotes></UserNotes>
   <LastFileSize>106681</LastFileSize>
   <LastFileDate>2010-09-26T23:50:38.7502</LastFileDate>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer>http://www.softpedia.com/</HttpReferer>
   <Variables>
     <item>
       <key>
         <string>InfoPage</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{property:WebsiteUrl}</TextualContent>
           <Name>InfoPage</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>APPName</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>Here are some key features of "([\S\W]*)":</Regex>
           <Url>{InfoPage}</Url>
           <Name>APPName</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><title>Download {APPName} ([\s\d\w.]*) Free</Regex>
           <Url>{InfoPage}</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetDownloadLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><a href="([^\s]*)" title="Download </Regex>
           <Url>{InfoPage}</Url>
           <Name>GetDownloadLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetFileLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><a href="([^\s]*)" title="Download </Regex>
           <Url>{GetDownloadLink}</Url>
           <Name>GetFileLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetRedirect</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex> If it doesn't, please <a href="([\d\s\w\S]*)" rel</Regex>
           <Url>{GetFileLink}</Url>
           <Name>GetRedirect</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetSSLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>href="http://www.softpedia.com/progScreenshots/([^\s]*)"</Regex>
           <Url>{InfoPage}</Url>
           <Name>GetSSLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetSSImage</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>href="http://www.softpedia.com/screenshots/([^\s]*)"</Regex>
           <Url>http://www.softpedia.com/progScreenshots/{GetSSLink}</Url>
           <Name>GetSSImage</Name>
         </UrlVariable>
       </value>
     </item>
           <item>
       <key>
         <string>ImageLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>http://www.softpedia.com/screenshots/{GetSSImage}</TextualContent>
           <Name>ImageLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>SetUserNotes</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>class="KonaBody"> ([\w\s\d\W]*) \[</Regex>
           <Url>{GetDownloadLink}</Url>
           <Name>SetUserNotes</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{GetRedirect}</TextualContent>
           <Name>url</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>wget {ImageLink} -O "{2DIR}\{appname}.{GetSSImage:split:.:1}"
echo "{SetUserNotes}">"{2DIR}\{appname}.info"</ExecuteCommand>
   <ExecutePreCommand></ExecutePreCommand>
   <Category> Tools</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>q:\Software\WGET_1.5.3.1.zip</PreviousLocation>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2010-09-26T23:50:38.7502</LastUpdated>
   <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>{url}</FixedDownloadUrl>
   <Name><placeholder name="Enter desired application name" regex="(Name:trimend:.)" value="wgett" /></Name>
 </ApplicationJob>
</Jobs></SourceTemplate>
   <WebsiteUrl>http://www.softpedia.com/get/Internet/Other-Internet-Related/WGET.shtml</WebsiteUrl>
   <UserAgent />
   <UserNotes />
   <LastFileSize>106681</LastFileSize>
   <LastFileDate>2010-09-26T23:50:38.7502</LastFileDate>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer>http://www.softpedia.com/</HttpReferer>
   <SetupInstructions />
   <Variables>
     <item>
       <key>
         <string>InfoPage</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{property:WebsiteUrl}</TextualContent>
           <Name>InfoPage</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>APPName</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>;">([\S^/]+) description<</Regex>
           <Url>{InfoPage}</Url>
           <Name>APPName</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><title>Download {APPName} ([\s\d\w.]*) Free</Regex>
           <Url>{InfoPage}</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetDownloadLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><a href="([^\s]*)" title="Download </Regex>
           <Url>{InfoPage}</Url>
           <Name>GetDownloadLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetFileLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><a href="([^\s]*)" title="Download </Regex>
           <Url>{GetDownloadLink}</Url>
           <Name>GetFileLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetRedirect</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex> If it doesn't, please <a href="([\d\s\w\S]*)" rel</Regex>
           <Url>{GetFileLink}</Url>
           <Name>GetRedirect</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetSSLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>href="http://www.softpedia.com/progScreenshots/([^\s]*)"</Regex>
           <Url>{InfoPage}</Url>
           <Name>GetSSLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>GetSSImage</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>href="http://www.softpedia.com/screenshots/([^\s]*)"</Regex>
           <Url>http://www.softpedia.com/progScreenshots/{GetSSLink}</Url>
           <Name>GetSSImage</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>ImageLink</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>http://www.softpedia.com/screenshots/{GetSSImage}</TextualContent>
           <Name>ImageLink</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>SetUserNotes</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>class="KonaBody"> ([\w\s\d\W]*) \[</Regex>
           <Url>{GetDownloadLink}</Url>
           <Name>SetUserNotes</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{GetRedirect}</TextualContent>
           <Name>url</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>wget {ImageLink} -O "{2DIR}\{appname}.{GetSSImage:split:.:1}"
echo "{SetUserNotes}">"{2DIR}\{appname}.info"</ExecuteCommand>
   <ExecutePreCommand />
   <ExecuteCommandType>Batch</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category> Tools</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>q:\Software\WGET_1.5.3.1.zip</PreviousLocation>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2010-09-26T23:50:38.7502</LastUpdated>
   <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>{url}</FixedDownloadUrl>
   <Name>wgett</Name>
 </ApplicationJob>
</Jobs>

Link to comment
Share on other sites

I have a request. I know it's kinda late (already being beta), but maybe not too late in the game.

 

The entity-encoding of the template is (IMHO) the wrong way to do this. It would be far more portable and externally (such as thru batch, shell, vbs and so on) if you used XML CDATA blocks to store the exact template, so no interpretation, reformatting or entity-encoding is required externally when automating data manipulation.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.