feat: webdav

Closes #432

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-08 16:10:55 +08:00
parent 560b1e40cc
commit a34c18b262
7 changed files with 261 additions and 0 deletions

View File

@@ -451,6 +451,18 @@ class GStorage {
static bool get navSearchStreamDebounce => GStorage.setting
.get(SettingBoxKey.navSearchStreamDebounce, defaultValue: false);
static String get webdavUri =>
GStorage.setting.get(SettingBoxKey.webdavUri, defaultValue: '');
static String get webdavUsername =>
GStorage.setting.get(SettingBoxKey.webdavUsername, defaultValue: '');
static String get webdavPassword =>
GStorage.setting.get(SettingBoxKey.webdavPassword, defaultValue: '');
static String get webdavDirectory =>
GStorage.setting.get(SettingBoxKey.webdavDirectory, defaultValue: '/');
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -737,6 +749,12 @@ class SettingBoxKey {
recordSearchHistory = 'recordSearchHistory',
navSearchStreamDebounce = 'navSearchStreamDebounce',
// WebDAV
webdavUri = 'webdavUri',
webdavUsername = 'webdavUsername',
webdavPassword = 'webdavPassword',
webdavDirectory = 'webdavDirectory',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',
blockSettings = 'blockSettings',