Update YouTube.ps1

This commit is contained in:
2024-01-02 01:11:11 +07:00
committed by GitHub
parent 7f15206c6d
commit 271a6e13c6

View File

@@ -22,7 +22,7 @@ $Parameters = @{
UseBasicParsing = $false # Disabled UseBasicParsing = $false # Disabled
Verbose = $true Verbose = $true
} }
$URLParse = (Invoke-Webrequest @Parameters).Links.outerHTML | Where-Object -FilterScript {$_ -like "*YouTube $($LatestSupportedYT) (nodpi)*"} $URLParse = (Invoke-Webrequest @Parameters).Links.outerHTML | Where-Object -FilterScript {$_ -like "*YouTube $($LatestSupported) (nodpi)*"}
# Check if variable contains a data # Check if variable contains a data
if ($URLParse) if ($URLParse)
{ {