mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update YouTube.ps1
This commit is contained in:
@@ -22,7 +22,10 @@ $Parameters = @{
|
|||||||
UseBasicParsing = $false # Disabled
|
UseBasicParsing = $false # Disabled
|
||||||
Verbose = $true
|
Verbose = $true
|
||||||
}
|
}
|
||||||
$URLParse = (Invoke-Webrequest @Parameters).Links.outerHTML | Where-Object -FilterScript {$_ -like "*YouTube $($LatestSupported) (nodpi)*"}
|
# $URLParse = (Invoke-Webrequest @Parameters).Links.outerHTML | Where-Object -FilterScript {$_ -like "*YouTube $($LatestSupported) (nodpi)*"}
|
||||||
|
$Request = Invoke-Webrequest @Parameters
|
||||||
|
$Parsed = $angleparser.ParseDocument($Request.Content)
|
||||||
|
$URLParse = $Parsed.All | Where-Object -FilterScript {$_ -like "*YouTube $($LatestSupported) (nodpi)*"}
|
||||||
# Check if variable contains a data
|
# Check if variable contains a data
|
||||||
if ($URLParse)
|
if ($URLParse)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user