Regex fix for podcasts

This commit is contained in:
amd64fox
2022-02-17 16:03:44 +03:00
parent 00fac9038b
commit 86fe0fb96b
2 changed files with 2 additions and 2 deletions

View File

@@ -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" }

View File

@@ -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" }