mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: cdn speed test
Closes #105 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -12,10 +12,10 @@ class VideoUtils {
|
||||
RegExp(r'^https?://\d{1,3}\.\d{1,3}').hasMatch(url);
|
||||
}
|
||||
|
||||
static String getCdnUrl(dynamic item) {
|
||||
static String getCdnUrl(dynamic item, [defaultCDNService]) {
|
||||
String? backupUrl;
|
||||
String? videoUrl;
|
||||
String defaultCDNService = GStorage.setting
|
||||
defaultCDNService ??= GStorage.setting
|
||||
.get(SettingBoxKey.CDNService, defaultValue: CDNService.backupUrl.code);
|
||||
if (item is AudioItem) {
|
||||
if (GStorage.setting
|
||||
|
||||
Reference in New Issue
Block a user