Skip to content

Commit

Permalink
Update YouTube.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 authored Jan 1, 2025
1 parent bcd2ffa commit e5a7ef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/YouTube.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ $Parameters = @{
$JSON = (Invoke-Webrequest @Parameters).Content | ConvertFrom-Json
$Patches = ($JSON | Where-Object -FilterScript {$_.name -eq "Video ads"})
$LatestSupportedYT = $Patches.compatiblePackages."com.google.android.youtube" | Sort-Object -Descending -Unique | Select-Object -First 1
$LatestSupportedYT = $LatestSupportedYT.Replace(".", "-")
$LatestSupported = $LatestSupportedYT.Replace(".", "-")

# We need a NON-bundle version
# https://www.apkmirror.com/apk/google-inc/youtube/
$Parameters = @{
Uri = "https://www.apkmirror.com/apk/google-inc/youtube/youtube-$($LatestSupportedYT)-release/youtube-$($LatestSupportedYT)-android-apk-download/"
Uri = "https://www.apkmirror.com/apk/google-inc/youtube/youtube-$($LatestSupported)-release/youtube-$($LatestSupported)-android-apk-download/"
UseBasicParsing = $false # Disabled
Verbose = $true
}
$Request = Invoke-Webrequest @Parameters

$Parameters = @{
Uri = "https://www.apkmirror.com/apk/google-inc/youtube/youtube-$($LatestSupportedYT)-release/youtube-$($LatestSupportedYT)-2-android-apk-download/"
Uri = "https://www.apkmirror.com/apk/google-inc/youtube/youtube-$($LatestSupported)-release/youtube-$($LatestSupported)-2-android-apk-download/"
UseBasicParsing = $false # Disabled
Verbose = $true
}
Expand Down

0 comments on commit e5a7ef8

Please sign in to comment.