Jump to content
Ketarin forum

kazso

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by kazso

  1. Also i wish in a rapid fix or a workaround. Thx

     

    Here is my rapid "dirty" fix: http://drivehq.com/file/DFPublishFile.aspx/FileID1710652150/Keyp61h5pwiptuq/Ketarin-avoid-beta-working.zip

     

    This is only the exe file for Ketarin 1.6.1 RC1 (https://ketarin.org/forum/topic/696-ketarin-161-rc1)

     

    Basically i changed the FileHippo regex query with a hex editor :)

    I tried to compile the source to make a "proper" fix, but that didn't work with my VS2008 :unsure:

     

    This is the original regex for FileHippo version: ((?<=\>Title:\<.*?\s)(?:\(?\d+?\.\d+?.*?)(?=\</td\>)|(?:[a-z]+?\s\d{1,2},\s\d{4}))

    And this is my "dirty" regex (had to match the length of the original query): ((?<=\<title\>..*?\s)(?:\(?\d+?\.\d+?.*?)(?=\s-\sTe)|(?:[a-z]+?\s\d{1,2},\s\d{4}))

    And the "proper" regex would be something like this: (?s)((?<=\>Title:\<.*?\s)(?:\(?\d+?\.\d+?.*?)(?=\</span\>)|(?:[a-z]+?\s\d{1,2},\s\d{4}))

    This regex query can be found in the ExternalServices.cs file in the source code.

     

    Ketarin loads the Technical tab to search for the version (http://www.filehippo.com/download_7-zip_64/tech/).

    In the previous FileHippo page layout all the technical info was in a single line and used tables (<td> </td>). In the current page layout all info is in seperate lines without tables (<span> </span>).

     

    Edit: I looked further into the source code to make it work with the 'avoid beta' option. Ketarin looks for filehippo.com/img/beta.gif on the page to determine if it's a beta version or not. Ofcourse with the new page layout FileHippo marks beta versions differently. Now it's marked with <span class="beta-text">BETA</span>. I managed to replace the original search string with ss="beta-text">BETA</span> (again, had to match the original string length). With this and the previous fix Ketarin works as intended. I uploaded the new file, which includes both fixes (or more like hacks :) ).

×
×
  • 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.