<commit_before>Import-Module au
. "$PSScriptRoot\..\..\scripts\Set-DescriptionFromReadme.ps1"

$source = "https://screencloud.net/pages/download"
$pattern = "ScreenCloud-(.+)-x86.msi"

function global:au_BeforeUpdate {
    Get-RemoteFiles -Purge -NoSuffix
}

function global:au_AfterUpdate {
    Set-DescriptionFromReadme -SkipFirst 2
}

function global:au_SearchReplace {
    @{
        ".\tools\chocolateyInstall.ps1" = @{
            "(?i)'$($pattern)'" = "`${1}'$($Latest.FileName32)'"
        }
        ".\legal\VERIFICATION.txt" = @{
            "(?i)(\s+x32:).*"      = "`${1} $($Latest.URL32)"
            "(?i)(\checksum32:).*" = "`${1} $($Latest.Checksum32)"
        }
    }
}

function global:au_GetLatest {
    $res = Invoke-WebRequest -Uri $source -UseBasicParsing

    $url = $res.Links | ? href -match $pattern | % href
    $version = $matches[1]

    @{
        Version = $version
        URL32 = "https:$url"
    }
}

update -ChecksumFor none<commit_msg>(screencloud) Future-proof the scraper, as suggested<commit_after>Import-Module au
. "$PSScriptRoot\..\..\scripts\Set-DescriptionFromReadme.ps1"

$source = "https://screencloud.net/pages/download"
$pattern = "ScreenCloud-(.+)-x86.msi$"

function global:au_BeforeUpdate {
    Get-RemoteFiles -Purge -NoSuffix
}

function global:au_AfterUpdate {
    Set-DescriptionFromReadme -SkipFirst 2
}

function global:au_SearchReplace {
    @{
        ".\tools\chocolateyInstall.ps1" = @{
            "(?i)'$($pattern)'" = "`${1}'$($Latest.FileName32)'"
        }
        ".\legal\VERIFICATION.txt" = @{
            "(?i)(\s+x32:).*"      = "`${1} $($Latest.URL32)"
            "(?i)(\checksum32:).*" = "`${1} $($Latest.Checksum32)"
        }
    }
}

function global:au_GetLatest {
    $res = Invoke-WebRequest -Uri $source -UseBasicParsing

    $url = $res.Links | ? href -match $pattern | select -First 1 -Expand href
    $version = $matches[1]

    @{
        Version = $version
        URL32 = "https:$url"
    }
}

update -ChecksumFor none
{'fraction_non_alphanumeric': 0.18562874251497005, 'fraction_numerical': 0.021457085828343315, 'mean_word_length': 2.7267657992565058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '796551', 'n_tokens_mistral': 746, 'n_tokens_neox': 699, 'n_words': 110}