Skip to content

Commit

Permalink
basic parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Aug 3, 2024
1 parent e45cd7c commit 0b72aa0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion automatic/Executor/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function global:au_GetLatest {
$downloadPage = Invoke-WebRequest -Uri $releases -UseBasicParsing
$url32 = $downloadPage.links | where-object href -match 'E.+\.exe' | select-object -expand href | foreach-object { $base + '/' + $_ } | Select-Object -First 1

[XML]$feed = $((Invoke-WebRequest -Uri 'http://www.1space.dk/executor/rssfeed.xml')).Content
[XML]$feed = $((Invoke-WebRequest -Uri 'http://www.1space.dk/executor/rssfeed.xml' -UseBasicParsing)).Content
$version = $feed.rss.channel.item[0].title.split(' ')[-1].trim()

return @{
Expand Down
2 changes: 1 addition & 1 deletion automatic/digikam/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function global:au_AfterUpdate($Package) {
function global:au_GetLatest {
Write-Output 'Check Folder'
$version = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_.href -match '^\d+([.]\d+)?'} | ForEach-Object {($_.href -replace '[^.\d]', '')} | Measure-Object -Max).Maximum
$url64 = ((Invoke-WebRequest -Uri "$($releases)$($version)/").Links | Where-Object {$_.href -match 'Qt6-Win64.exe'}).href | Select-Object -First 1
$url64 = ((Invoke-WebRequest -Uri "$($releases)$($version)/" -UseBasicParsing).Links | Where-Object {$_.href -match 'Qt6-Win64.exe'}).href | Select-Object -First 1
$url64 = "$($releases)$($version)/$($url64)"

$Latest = @{ URL64 = $url64; Version = $version }
Expand Down
4 changes: 2 additions & 2 deletions automatic/domainhostingview/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function global:au_AfterUpdate($Package) {

function global:au_GetLatest {
$url32 = "https://www.nirsoft.net/utils/domainhostingview.zip"
Invoke-WebRequest -Uri $url32 -OutFile "tools/domainhostingview.zip"
$pageContent = Invoke-WebRequest -Uri "https://www.nirsoft.net/utils/domain_hosting_view.html"
Invoke-WebRequest -Uri $url32 -OutFile "tools/domainhostingview.zip" -UseBasicParsing
$pageContent = Invoke-WebRequest -Uri "https://www.nirsoft.net/utils/domain_hosting_view.html" -UseBasicParsing
$regexPattern = 'DomainHostingView v(\d+(\.\d+)*)'
$versionMatch = $pageContent.Content | Select-String -Pattern $regexPattern -AllMatches
$version = $versionMatch.Matches[0].Groups[1].Value
Expand Down
2 changes: 1 addition & 1 deletion automatic/drivergenius/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function global:au_AfterUpdate($Package) {
}

function global:au_GetLatest {
$page = Invoke-WebRequest -Uri $releases
$page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$regexPattern = 'Version: (\d+(\.\d+)*)'
$versionMatch = $page.Content | Select-String -Pattern $regexPattern -AllMatches
$version = $versionMatch.Matches[0].Groups[1].Value
Expand Down
2 changes: 1 addition & 1 deletion automatic/drivermax/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function global:au_AfterUpdate($Package) {
}

function global:au_GetLatest {
$page = Invoke-WebRequest -Uri $releases
$page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$regexPattern = 'DriverMax (\d+(\.\d+)*)'
$versionMatch = $page.Content | Select-String -Pattern $regexPattern -AllMatches
$version = $versionMatch.Matches[0].Groups[1].Value
Expand Down
2 changes: 1 addition & 1 deletion automatic/duckietv/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function global:au_AfterUpdate($Package) {
}

function global:au_GetLatest {
$page = Invoke-WebRequest -Uri $releases
$page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$tag = ($page.Links | Where-Object {$_.href -match "tag"} | Select-Object -First 2 -Skip 1).href.split('/')[-1]
$tags = Get-GitHubRelease -OwnerName $Owner -RepositoryName $repo -Tag $tag
$urls = $tags.assets.browser_download_url | Where-Object {$_ -match ".zip$"}
Expand Down

0 comments on commit 0b72aa0

Please sign in to comment.