Jump to content
Ketarin forum

{version} is replaced in Target column but not in the actual file name


Stalker
 Share

Recommended Posts

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="d8556a67-57f6-4de8-b9c2-8512f58bfe7d">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate>2008-12-23T23:14:03.6643</DownloadDate>
   <CanBeShared>false</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables />
   <ExecuteCommand />
   <Category>Internet</Category>
   <SourceType>FileHippo</SourceType>
   <PreviousLocation>D:\Distrib\Internet\uTorrent_1.8.1 Build 12639.exe</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId>utorrent</FileHippoId>
   <LastUpdated>2009-01-11T18:08:28.601+02:00</LastUpdated>
   <TargetPath>{DEST_DIR}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl />
   <Name>uTorrent</Name>
 </ApplicationJob>
</Jobs>

 

The {version} equals to 1.8.1 build 12639 and the resulting file name is uTorrent_{version}.exe

 

It works for Flash though where {version} is 10.0.12.35 (Non-IE). File name is Adobe Flash Player Firefox_10.0.12.36 (Non-IE).exe

Edited by Stalker
Link to comment
Share on other sites

  • 2 months later...

Have the same problem with another app entry.

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="1b7afc21-0103-4a8b-9fa1-c9cef4655ba7">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>true</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.samsung.com/ua/support/download/supportDownDetail.do?group=%3F%3F%3F%3F%3F%3F%3F%3F&type=%D0%BF%D1%80%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B8&subtype=%D0%BA%D0%BE%D0%BB%D1%8C%D0%BE%D1%80%D0%BE%D0%B2%D1%96%20%D0%BB%D0%B0%D0%B7%D0%B5%D1%80%D0%BD%D1%96&model_nm=CLP-300&disp_nm=CLP-300&language=&cate_type=all&mType=DR&dType=D&vType=L&cttID=2071443&prd_ia_cd=06010200</Url>
           <StartText>Printer Driver  (ver.</StartText>
           <EndText>)</EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>filename</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.samsung.com/ua_ru/support/download/supportDownDetail.do?group=%3F%3F%3F%3F%3F%3F%3F%3F%20%3F%20%3F%3F%3F&type=%D0%BF%D1%80%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D1%8B&subtype=%D1%86%D0%B2%D0%B5%D1%82%D0%BD%D1%8B%D0%B5%20%D0%BB%D0%B0%D0%B7%D0%B5%D1%80%D0%BD%D1%8B%D0%B5&model_nm=CLP-300&disp_nm=CLP-300&language=&cate_type=all&mType=DR&dType=D&vType=L&cttID=2071443&prd_ia_cd=06010200</Url>
           <StartText>ModelName=CLP-300&VPath=</StartText>
           <EndText>"</EndText>
           <Name>filename</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <Category>Drivers</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Distrib\Drivers\Samsung CLP-300 Vista 32-bit Driver_{version}.exe</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-01-15T00:03:49.144</LastUpdated>
   <TargetPath>{DEST_DIR}\{category}\{appname}_v{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://downloadcenter.samsung.com/content/{filename}</FixedDownloadUrl>
   <Name>Samsung CLP-300 Vista 32-bit Driver</Name>
 </ApplicationJob>
</Jobs>

 

Also note that while for some reason previous location is listed as D:\Distrib\Drivers\Samsung CLP-300 Vista 32-bit Driver_{version}.exe it in fact wasn't anything like that. That's more like "Waay old location from the times past".

 

Here's the log:

28.03.2009 23:15:53: Update started with 1 application(s)
28.03.2009 23:15:55: Samsung CLP-300 Vista 32-bit Driver: Replacing {filename} in 'http://downloadcenter.samsung.com/content/{filename}' with 'DR/200812/20081203141359328/CLP-300_Vista.exe'
28.03.2009 23:15:55: Samsung CLP-300 Vista 32-bit Driver: Using referer: http://www.samsung.com/ua/support/download/supportDownDetail.do?group=%3F%3F%3F%3F%3F%3F%3F%3F&type=%D0%BF%D1%80%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B8&subtype=%D0%BA%D0%BE%D0%BB%D1%8C%D0%BE%D1%80%D0%BE%D0%B2%D1%96%20%D0%BB%D0%B0%D0%B7%D0%B5%D1%80%D0%BD%D1%96&model_nm=CLP-300&disp_nm=CLP-300&language=&cate_type=all&mType=DR&dType=D&vType=L&cttID=2071443&prd_ia_cd=06010200
28.03.2009 23:15:55: Samsung CLP-300 Vista 32-bit Driver: Server source file: /content/DR/200812/20081203141359328/CLP-300_Vista.exe
28.03.2009 23:15:57: Samsung CLP-300 Vista 32-bit Driver: Determined target file name: \\Neuromancer\Software\Drivers\Samsung CLP-300 Vista 32-bit Driver_v{version}.exe
28.03.2009 23:15:57: Samsung CLP-300 Vista 32-bit Driver: Checking if update is required...
28.03.2009 23:15:57: Samsung CLP-300 Vista 32-bit Driver: Update required, '\\Neuromancer\Software\Drivers\Samsung CLP-300 Vista 32-bit Driver_v{version}.exe' does not yet exist
28.03.2009 23:36:41: Samsung CLP-300 Vista 32-bit Driver: Executing command: "C:\Program Files\Windows Home Server\WHSAlert.exe" "Application has been updated" "Samsung CLP-300 Vista 32-bit Driver has been updated to version {version}" warning 10 
28.03.2009 23:36:43: Executing command: "C:\Program Files\Windows Home Server\WHSAlert.exe" "Daily update job has been finished" "Daily update job has been finished on {HH}:{mm}:{ss}" warning 1
28.03.2009 23:36:52: Command result: C:\Program Files\Ketarin>"C:\Program Files\Windows Home Server\WHSAlert.exe" "Daily update job has been finished" "Daily update job has been finished on {HH}:{mm}:{ss}" warning 1

C:\Program Files\Ketarin>
28.03.2009 23:36:52: Update finished

Link to comment
Share on other sites

Sorry, I misunderstood. I cannot reproduce your problem.

 

--------------------------

 

Edit: just tested with latest uTorrent and resulting filename is 'uTorrent 1.9 Beta_1.9 Beta 14908.exe'. Appname capture is incorrect, but I fail see an aditional problem here (or with my other jobs).

Edited by FranciscoR
Link to comment
Share on other sites

Edit: just tested with latest uTorrent and resulting filename is 'uTorrent 1.9 Beta_1.9 Beta 14908.exe'. Appname capture is incorrect, but I fail see an aditional problem here (or with my other jobs).

Not uTorrent either. It only reproduces with Samsung CLP-300 printer drivers (the latest XML I've posted). All other jobs work fine.

Link to comment
Share on other sites

Man, are you kidding me ? =) What did you say in the first post of this thread ? Anyway, I admit there could be such a problem.

First post is an old problem which was fixed long time ago (don't recall how or when). Now I have the similar problem (post #2). I decided not to create a separate thread for it (a mistake it seems :P). So yeah first post problem was fixed, second post problem is actual. Sorry for the confusion :)

Link to comment
Share on other sites

It only reproduces with Samsung CLP-300 printer drivers (the latest XML I've posted). All other jobs work fine.

I imported and tested your Samsung CLP-300 printer drivers XML export and it appears that the version capture configuration is no longer correct... the URL for version appears to be invalid from here. Try to correct that first and then see what happens. BTW, your post for the uTorrent export is incorrect as the utf=16 line is duplicated.

Link to comment
Share on other sites

It only reproduces with Samsung CLP-300 printer drivers (the latest XML I've posted). All other jobs work fine.

I imported and tested your Samsung CLP-300 printer drivers XML export and it appears that the version capture configuration is no longer correct... the URL for version appears to be invalid from here. Try to correct that first and then see what happens.

Ah' date=' they did it again. They've been changing the URL for 3rd time already and the only thing that changes is the language identifier (first it was just ru, then ua_ru and now just ua). So yeah, changed the URL and it works now. Although the strange thing is that Ketarin always showed the version to be 3.03 even with the incorrect URL but didn't actually replace it in the file path.

 

BTW, your post for the uTorrent export is incorrect as the utf=16 line is duplicated.

Yeah, I know. Didn't bother to correct it since it's an old entry but now that you've noticed it I went and did correct it for correctness sake :)

 

EDIT: Returned the favor :)

Edited by Stalker
Link to comment
Share on other sites

I'm glad I could help as I well know it can be frustrating adjusting to site changes. ;) May I ask you a favor in return though? Please remove the profanity in your post above so we can keep things rated "G"... suitable for ALL audiences. Might I suggest darn...

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.