Jump to content
Ketarin forum

Free File Sync Redux


appyface
 Share

Recommended Posts

Necrox helped get it working for me, but it stopped working with the next update of Free File Sync.

I tried to use search here to find my old post but keep getting the following page:

A configuration or server error has occurred

Sorry, there is a problem

Something went wrong. Please try again.

Error code: EX0

 

Anyway, Can someone help with Free File Sync again?

This is the download page:  https://www.freefilesync.org/download.php

I'm looking to scrape and download the first one - Windows Setup file.

Thank you for any help (again).

Link to comment
Share on other sites

This works for me:

<?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="58eddfcf-521f-47fa-bde0-68fdda227ad4">
    <Category>Internet</Category>
    <WebsiteUrl>https://www.freefilesync.org/download.php</WebsiteUrl>
    <UserAgent />
    <UserNotes />
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate xsi:nil="true" />
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>version</VariableChangeIndicator>
    <HashVariable />
    <HashType>None</HashType>
    <CanBeShared>true</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <SetupInstructions />
    <Variables>
      <item>
        <key>
          <string>schangelog</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>https://www.freefilesync.org/download.php</TextualContent>
            <Name>schangelog</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>swebsite</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>https://www.freefilesync.org/download.php</TextualContent>
            <Name>swebsite</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>snotes</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <Name>snotes</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>spc</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>freefilesync</TextualContent>
            <Name>spc</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>FreeFileSync ([\d\.]+) Windows Setup</Regex>
            <Url>https://www.freefilesync.org/download.php</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>dlstub</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>="(/download/[^'"]+)"[^&lt;&gt;]*&gt;Download FreeFileSync [\d\.]+ Windows Setup</Regex>
            <Url>https://www.freefilesync.org/download.php</Url>
            <Name>dlstub</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>dl</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>https://www.freefilesync.org{dlstub}</TextualContent>
            <Name>dl</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <SourceType>FixedUrl</SourceType>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <TargetPath>..\{category}\{appname:regexreplace:([\s\t\r\n\-\\&amp;\/]+):_}-{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>{dl}</FixedDownloadUrl>
    <Name>FreeFileSync</Name>
  </ApplicationJob>
</Jobs>

 

Link to comment
Share on other sites

  • 2 weeks later...

Sorry for delay, I didn't get any notification that you had replied (notify is turned on...)

Thanks I will give yours a go.  Does it handle the redirect to mediafire?  Because that's what broke the one I had, it stopped as soon as the url changed to mediafire.

Link to comment
Share on other sites

The one Necrox shared with me also worked fine until the site offered a redirect to mediafire, which didn't work and why I came back here.

I'm not sure how often for how long they point to Mediafire instead?  I'll do some monitoring.

 

I'm still not getting any emails when my posts are replied to, and I believe I have all my settings correct.  Is anyone else getting emails?

Link to comment
Share on other sites

 

You don't need the mediafire thing. Here is my last version (Updated on 10 April 2017 in the online database). If an app doesn't work anymore, it's best to have a look at the online database regularly for an updated version.

<?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="7bb5b4f4-2376-4e38-b0b6-b14768e98027">
    <Category>Utilities</Category>
    <WebsiteUrl>https://www.freefilesync.org/download.php</WebsiteUrl>
    <UserAgent>{mozilla}</UserAgent>
    <UserNotes />
    <LastFileSize>12620128</LastFileSize>
    <LastFileDate>2017-05-26T07:52:04.7088937</LastFileDate>
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate xsi:nil="true" />
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>version</VariableChangeIndicator>
    <HashVariable />
    <HashType>None</HashType>
    <CanBeShared>true</CanBeShared>
    <ShareApplication>true</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer>{referer}</HttpReferer>
    <SetupInstructions />
    <Variables>
      <item>
        <key>
          <string>appcat</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:regexreplace: \(.*\):}</TextualContent>
            <Name>appcat</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>appfile</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:multireplace:|:(|)| :|_|_}</TextualContent>
            <Name>appfile</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=Changelog.*?FreeFileSync )[0-9.]{2,}</Regex>
            <Url>http://freefilesync.sourceforge.net/download.php</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>url</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex>Problems with the download.*?href="(.+?)"</Regex>
            <Url>http://www.fosshub.com/FreeFileSync.html/FreeFileSync_{version}_Windows_Setup.exe</Url>
            <TextualContent>http://www.freefilesync.org{download}</TextualContent>
            <Name>url</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>download</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>([^"]*Setup.exe)</Regex>
            <PostData />
            <Url>http://www.freefilesync.org/download.php</Url>
            <Name>download</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>referer</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>https://www.freefilesync.org/download.php</TextualContent>
            <Name>referer</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand>echo %date% - %time% // {appname} v{version} &gt;&gt; "{file:directory}"\history.txt</ExecuteCommand>
    <ExecutePreCommand />
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <SourceType>FixedUrl</SourceType>
    <PreviousLocation>P:\KETARIN\Downloads\Utilities\FreeFileSync\FreeFileSync_Setup_v9.1.exe</PreviousLocation>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <LastUpdated>2017-05-26T07:52:04.7088937</LastUpdated>
    <TargetPath>{downloads}\{category}\{appcat}\{appfile}v{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>{url}</FixedDownloadUrl>
    <Name>FreeFileSync (Setup)</Name>
  </ApplicationJob>
</Jobs>

 

Link to comment
Share on other sites

For each app, you can choose whether the template is submitted to the database or not. The database is a global collection of all apps that have been uploaded AND have been updated so far - if the 'shared' option was activated.

1hhu59.png

2rquui.png

3z2usm.png

4diu7k.png

 

 

 

Link to comment
Share on other sites

It should also be noted that the nomenclature for these specific xml files are called "applications". and there's a reason for that. Ketarin also has template support which allows future apps from a given provider (such as sourceforge, wordpress.org, or something similar) to be able to have most options prefilled and allow drop-down population for other options. Check it out. 

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.