mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-13 20:28:25 +10:00
Regex fix for podcasts
This commit is contained in:
@@ -325,7 +325,7 @@ function OffUpdStatus {
|
||||
}
|
||||
function OffPodcasts {
|
||||
# Turn off podcasts
|
||||
$podcasts_off1 = '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"'
|
||||
$podcasts_off1 = 'album,playlist,artist,show,station,episode', 'album,playlist,artist,station'
|
||||
$podcasts_off2 = ',this[.]enableShows=[a-z]'
|
||||
if ($xpui_js -match $podcasts_off1[0]) { $xpui_js = $xpui_js -replace $podcasts_off1[0], $podcasts_off1[1] } else { Write-Host "Didn't find variable " -ForegroundColor red -NoNewline; Write-Host "`$podcasts_off1[0] in xpui.js" }
|
||||
if ($xpui_js -match $podcasts_off2) { $xpui_js = $xpui_js -replace $podcasts_off2, "" } else { Write-Host "Didn't find variable " -ForegroundColor red -NoNewline; Write-Host "`$podcasts_off2 in xpui.js" }
|
||||
|
||||
@@ -324,7 +324,7 @@ function OffUpdStatus {
|
||||
}
|
||||
function OffPodcasts {
|
||||
# Отключить подкасты
|
||||
$podcasts_off1 = '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"'
|
||||
$podcasts_off1 = 'album,playlist,artist,show,station,episode', 'album,playlist,artist,station'
|
||||
$podcasts_off2 = ',this[.]enableShows=[a-z]'
|
||||
if ($xpui_js -match $podcasts_off1[0]) { $xpui_js = $xpui_js -replace $podcasts_off1[0], $podcasts_off1[1] } else { Write-Host "Не нашел " -ForegroundColor red -NoNewline; Write-Host "переменную `$podcasts_off1[0] в xpui.js" }
|
||||
if ($xpui_js -match $podcasts_off2) { $xpui_js = $xpui_js -replace $podcasts_off2, "" } else { Write-Host "Не нашел " -ForegroundColor red -NoNewline; Write-Host "переменную `$podcasts_off2 в xpui.js" }
|
||||
|
||||
Reference in New Issue
Block a user