Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -25,7 +25,8 @@ class VideoUtils {
: item.backupUrl ?? "";
}
if (item is CodecItem) {
backupUrl = (item.urlInfo?.first.host)! +
backupUrl =
(item.urlInfo?.first.host)! +
item.baseUrl! +
item.urlInfo!.first.extra!;
} else {
@@ -49,9 +50,9 @@ class VideoUtils {
videoUrl = uri.replace(host: hostname, port: 443).toString();
} else if (videoUrl.contains(".mcdn.bilivideo") ||
videoUrl.contains("/upgcxcode/")) {
videoUrl = Uri.parse(videoUrl)
.replace(host: defaultCDNHost, port: 443)
.toString();
videoUrl = Uri.parse(
videoUrl,
).replace(host: defaultCDNHost, port: 443).toString();
// videoUrl =
// 'https://proxy-tf-all-ws.bilivideo.com/?url=${Uri.encodeComponent(videoUrl)}';
}