Jump to content
Ketarin forum

Reformed Pirate

Members
  • Posts

    25
  • Joined

  • Last visited

Reformed Pirate's Achievements

Newbie

Newbie (1/14)

  1. stinf: Macrium Reflect Free seems to be working just fine for me with the current template. The app ID is "macrium-reflect-free". The app ID is always that dashed name of the application in the URL on this template. Lemme know if you're still having problems...
  2. @UksusoFF: looks like the app ID would just be "gimp-animation-package" for Brothersoft. It looks like I was nervous about them changing those numbers at the end, so I put <Regex>/({appid}-\d+?.html)"</Regex> in there to look for "gimp-animation-package" in this case followed by a hyphen, set of more than one numbers and ".html". Lemme know if that doesn't work or doesn't make sense. Thanks...
  3. Try it again. It works, but currently only on versions like "4.59b" and "1.07.114". I'll tweak it when I have some more time to have it include things like "beta 3", "build 48", etc.
  4. Thanks, UksusoFF... Brothersoft changed their site recently, and I just hadn't gotten around to updating the template. I'll try to do that tonight if I get a chance.
  5. Shawn: that's good information and all about the exporting and re-exporting, but the prototype template (if I can get it working properly, of course) should eliminate the need to export one at time by updating all applications from a common repository. I just started fresh, manually re-entering regexes for an application and exporting to an XML file as an application template. All I've done from this point is added a "Guid" at the top per http://wiki.ketarin.org/index.php/Templates to make it a prototype template as well as giving the "Category" variable a placeholder. This does not work at all how I'd expect it to... <?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="47528454-605d-4d8c-a759-8d502ee0a707"> <SourceTemplate> <![CDATA[]]></SourceTemplate> <WebsiteUrl /> <UserAgent /> <UserNotes /> <LastFileSize>0</LastFileSize> <LastFileDate xsi:nil="true" /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>subcategory</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>Sound Controllers</TextualContent> <Name>subcategory</Name> </UrlVariable> </value> </item> <item> <key> <string>platform</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>Windows</TextualContent> <Name>platform</Name> </UrlVariable> </value> </item> <item> <key> <string>appid</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>realtek-high-definition-audio</TextualContent> <Name>appid</Name> </UrlVariable> </value> </item> <item> <key> <string>searchpage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>action="\S*?([\d-_]+.html)"</Regex> <Url>http://download.cnet.com/</Url> <Name>searchpage</Name> </UrlVariable> </value> </item> <item> <key> <string>searchresult</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>/({appid}/[\d-_]+.html)</Regex> <Url>http://download.cnest.com/{searchpage}?query="{appid:replace:-: }"&tag=srch&searchtype=downloads&filterName=platform={platform}&filter=os=134|platform={platform}</Url> <Name>searchresult</Name> </UrlVariable> </value> </item> <item> <key> <string>appdlpage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://download.cnet.com/{searchresult}</TextualContent> <Name>appdlpage</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>name="productVersion"\s+value="(.+?)"</Regex> <Url>{appdlpage}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>appredirect</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="(http://dw.com.com/redir\S+)?"></Regex> <Url>{appdlpage}</Url> <Name>appredirect</Name> </UrlVariable> </value> </item> <item> <key> <string>download</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>[^\w]+URL=((ftp|http)://\S+)?"[^\w]+</Regex> <Url>{appredirect}</Url> <Name>download</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category> <placeholder name="What is the name of this application?" value="" /> </Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>{category}\{subcategory}\{appname}\{appname} ({version}).{url:ext}</TargetPath> <FixedDownloadUrl>{download}</FixedDownloadUrl> <Name>Realtek HD Audio Template</Name> </ApplicationJob> </Jobs>
  6. Thanks, flo...hadn't realized that. So I just tried altering my Download.com template by changing the "guid" to "Guid" and nothing else, and now Ketarin won't import this XML. http://imgur.com/xtQ0p.png has the error that I receive.
  7. SnapFiles added. Omni: I may have to give this another shot. I'd tried to have the names auto-populate previously, but the app names from that source then just showed up as {appname} which did me no good. Since you're populating it in a variable {name} and, I assume, then reading that into {appname} perhaps you're having better results. I'll try this out tomorrow. It's bedtime for me, now that I've officially got all of the download sites that I'd need to redownload my entire application library.
  8. So I just created a Softonic template, and I ran into exactly what I was talking about above. In the "download" variable, I changed the scrape's regex from "http" to "(http|ftp)" in case the download link is FTP. When I drag my XML template back into Ketarin, I expect it to ask me if I want to update all of the applications created by this template but Ketarin seems to want to ignore that my XML was ever updated. Code below... Original Template: <?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="0e7e1b05-1fe1-4d2c-9b91-eae6c1079ee3"> <Name> <placeholder name="What is the name of this application?" value="" /> </Name> <CanBeShared>true</CanBeShared> <Category> <placeholder name="How should this application be categorized?" value="" options="|Business|Development|Drivers|Education|Games|Graphic Design|Internet|Multimedia|Security|Utilities" /> </Category> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <DeletePreviousFile>true</DeletePreviousFile> <DownloadBeta>Default</DownloadBeta> <Enabled>true</Enabled> <ExclusiveDownload>false</ExclusiveDownload> <ExecuteCommand /> <ExecutePreCommand /> <FileHippoId /> <FixedDownloadUrl>{download}</FixedDownloadUrl> <HttpReferer>{appdlpage}/download</HttpReferer> <PreviousLocation /> <ShareApplication>false</ShareApplication> <SourceType>FixedUrl</SourceType> <TargetPath>{category}\{subcategory}\{appname}\{appname} ({version}).{url:ext}</TargetPath> <VariableChangeIndicator /> <Variables> <item> <key> <string>subcategory</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What subcategory should this application go in?" value="" /> </TextualContent> <Name>subcategory</Name> </UrlVariable> </value> </item> <item> <key> <string>platform</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What platform does this application run on?" value="" options="|Windows|Mac|Phones|Palm OS|Pocket PC" /> </TextualContent> <Name>platform</Name> </UrlVariable> </value> </item> <item> <key> <string>platformrename</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{platform:multireplace:|:Windows|Mac|Phones|Palm OS|Pocket PC:windows|mac|phones|palm|pocketpc}</TextualContent> <Name>platformrename</Name> </UrlVariable> </value> </item> <item> <key> <string>appid</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What is the ID of this application?" value="" /> </TextualContent> <Name>appid</Name> </UrlVariable> </value> </item> <item> <key> <string>appdlpage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="(\S*{appid}.en.softonic.com\S*)(?=/"|")</Regex> <Url>http://en.softonic.com/s/{appid}:{platformrename}</Url> <Name>appdlpage</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>>\s*(\d+\.\d+[\.\w]*)\s*<</Regex> <Url>{appdlpage}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>download</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="(http://\S+?)" target="_blank">\s*download link</Regex> <Url>{appdlpage}/download</Url> <Name>download</Name> </UrlVariable> </value> </item> </Variables> </ApplicationJob> </Jobs> Updated Template: <?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="0e7e1b05-1fe1-4d2c-9b91-eae6c1079ee3"> <Name> <placeholder name="What is the name of this application?" value="" /> </Name> <CanBeShared>true</CanBeShared> <Category> <placeholder name="How should this application be categorized?" value="" options="|Business|Development|Drivers|Education|Games|Graphic Design|Internet|Multimedia|Security|Utilities" /> </Category> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <DeletePreviousFile>true</DeletePreviousFile> <DownloadBeta>Default</DownloadBeta> <Enabled>true</Enabled> <ExclusiveDownload>false</ExclusiveDownload> <ExecuteCommand /> <ExecutePreCommand /> <FileHippoId /> <FixedDownloadUrl>{download}</FixedDownloadUrl> <HttpReferer>{appdlpage}/download</HttpReferer> <PreviousLocation /> <ShareApplication>false</ShareApplication> <SourceType>FixedUrl</SourceType> <TargetPath>{category}\{subcategory}\{appname}\{appname} ({version}).{url:ext}</TargetPath> <VariableChangeIndicator /> <Variables> <item> <key> <string>subcategory</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What subcategory should this application go in?" value="" /> </TextualContent> <Name>subcategory</Name> </UrlVariable> </value> </item> <item> <key> <string>platform</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What platform does this application run on?" value="" options="|Windows|Mac|Phones|Palm OS|Pocket PC" /> </TextualContent> <Name>platform</Name> </UrlVariable> </value> </item> <item> <key> <string>platformrename</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{platform:multireplace:|:Windows|Mac|Phones|Palm OS|Pocket PC:windows|mac|phones|palm|pocketpc}</TextualContent> <Name>platformrename</Name> </UrlVariable> </value> </item> <item> <key> <string>appid</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent> <placeholder name="What is the ID of this application?" value="" /> </TextualContent> <Name>appid</Name> </UrlVariable> </value> </item> <item> <key> <string>appdlpage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="(\S*{appid}.en.softonic.com\S*)(?=/"|")</Regex> <Url>http://en.softonic.com/s/{appid}:{platformrename}</Url> <Name>appdlpage</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>>\s*(\d+\.\d+[\.\w]*)\s*<</Regex> <Url>{appdlpage}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>download</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="((http|ftp)://\S+?)" target="_blank">\s*download link</Regex> <Url>{appdlpage}/download</Url> <Name>download</Name> </UrlVariable> </value> </item> </Variables> </ApplicationJob> </Jobs>
  9. I'm officially back at square one then, lol. So I have the IDs defined, yet Ketarin is not asking me to update things when I change something. Any ideas? Thanks again for your time (and this incredible program)...
  10. Thanks for the input, guys. So just to make sure that I'm understanding everything correctly: What I've been doing by explicitly adding GUIDs to my templates is wrong, as Ketarin will already assign a GUID to each application. What I should've been doing is adding GUIDs to the placeholders themselves so that when a change is made, Ketarin will understand and offer to update applications created by that template...right?
×
×
  • 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.