mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
refa: cdn (#1743)
* refa: cdn * feat: live cdn (WIP) * tweaks Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * add live quality [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * mod: replace durl host * tweak [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
e589f27195
commit
27ae296b28
@@ -238,10 +238,12 @@ abstract class Pref {
|
||||
static String get videoSync =>
|
||||
_setting.get(SettingBoxKey.videoSync, defaultValue: 'display-resample');
|
||||
|
||||
static String get defaultCDNService => _setting.get(
|
||||
SettingBoxKey.CDNService,
|
||||
defaultValue: CDNService.backupUrl.code,
|
||||
);
|
||||
static CDNService get defaultCDNService {
|
||||
if (_setting.get(SettingBoxKey.CDNService) case final String cdnName) {
|
||||
return CDNService.values.byName(cdnName);
|
||||
}
|
||||
return CDNService.backupUrl;
|
||||
}
|
||||
|
||||
static String get banWordForRecommend =>
|
||||
_setting.get(SettingBoxKey.banWordForRecommend, defaultValue: '');
|
||||
@@ -870,4 +872,6 @@ abstract class Pref {
|
||||
_setting.get(SettingBoxKey.setSystemBrightness, defaultValue: false);
|
||||
|
||||
static String? get downloadPath => _setting.get(SettingBoxKey.downloadPath);
|
||||
|
||||
static String? get liveCdnUrl => _setting.get(SettingBoxKey.liveCdnUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user