mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-10-08 11:39:01 +11:00
@@ -402,12 +402,15 @@ function Stop-BrokenSpotifyFiles {
|
||||
function Get-Link {
|
||||
param (
|
||||
[Alias("e")]
|
||||
[string]$endlink
|
||||
[string]$endlink,
|
||||
[string]$Owner = "SpotX-Official",
|
||||
[string]$Repository = "SpotX"
|
||||
)
|
||||
|
||||
$pagesOwner = $Owner.ToLowerInvariant()
|
||||
switch ($mirror) {
|
||||
$true { return "https://spotx-official.github.io/SpotX" + $endlink }
|
||||
default { return "https://raw.githubusercontent.com/SpotX-Official/SpotX/main" + $endlink }
|
||||
$true { return "https://$pagesOwner.github.io/$Repository" + $endlink }
|
||||
default { return "https://raw.githubusercontent.com/$Owner/$Repository/main" + $endlink }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -612,7 +615,7 @@ function Resolve-SpotifyInstallerVersionFromManifest {
|
||||
$spotifyDownloadBaseUrl = "https://loadspot.amd64fox1.workers.dev/download"
|
||||
$spotifyTemporaryDownloadBaseUrl = "https://loadspot.amd64fox1.workers.dev/temporary-download"
|
||||
$spotifyTemporaryDownloadVersion = "1.2.86.502.g8cd7fb22"
|
||||
$spotifyVersionsManifestUrl = "https://raw.githubusercontent.com/LoaderSpot/table/refs/heads/main/table/versions.json"
|
||||
$spotifyVersionsManifestUrl = Get-Link -e "/table/versions.json" -Owner "LoaderSpot" -Repository "table"
|
||||
$systemArchitecture = Get-SystemArchitecture
|
||||
|
||||
$match_v = "^(?<version>\d+\.\d+\.\d+(?:\.\d+(?:\.g[0-9a-f]{8})?)?)(?:-\d+)?$"
|
||||
|
||||
Reference in New Issue
Block a user