mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-17 06:33:59 +08:00
tweaks (#2100)
* mod: pgc episode title * opt: ColorScheme.of * mod: mpv api version * opt: log handler * opt: ext
This commit is contained in:
committed by
GitHub
parent
24769e144f
commit
b33fdf14af
@@ -31,47 +31,8 @@ abstract final class Accounts {
|
||||
return deletedEntries > 2;
|
||||
},
|
||||
);
|
||||
// await _migrate();
|
||||
}
|
||||
|
||||
// static Future<void> _migrate() async {
|
||||
// final Directory tempDir = await getApplicationSupportDirectory();
|
||||
// final String tempPath = "${tempDir.path}/.plpl/";
|
||||
// final Directory dir = Directory(tempPath);
|
||||
// if (dir.existsSync()) {
|
||||
// if (kDebugMode) debugPrint('migrating...');
|
||||
// final cookieJar = PersistCookieJar(
|
||||
// ignoreExpires: true,
|
||||
// storage: FileStorage(tempPath),
|
||||
// );
|
||||
// await cookieJar.forceInit();
|
||||
// final cookies = DefaultCookieJar(ignoreExpires: true)
|
||||
// ..domainCookies.addAll(cookieJar.domainCookies);
|
||||
// final localAccessKey = GStorage.localCache.get(
|
||||
// 'accessKey',
|
||||
// defaultValue: {},
|
||||
// );
|
||||
|
||||
// final isLogin =
|
||||
// cookies.domainCookies['bilibili.com']?['/']?['SESSDATA'] != null;
|
||||
|
||||
// await Future.wait([
|
||||
// GStorage.localCache.delete('accessKey'),
|
||||
// GStorage.localCache.delete('danmakuFilterRule'),
|
||||
// GStorage.localCache.delete('blackMidsList'),
|
||||
// dir.delete(recursive: true),
|
||||
// if (isLogin)
|
||||
// LoginAccount(
|
||||
// cookies,
|
||||
// localAccessKey['value'],
|
||||
// localAccessKey['refresh'],
|
||||
// AccountType.values.toSet(),
|
||||
// ).onChange(),
|
||||
// ]);
|
||||
// if (kDebugMode) debugPrint('migrated successfully');
|
||||
// }
|
||||
// }
|
||||
|
||||
static Future<void> refresh() {
|
||||
for (final a in account.values) {
|
||||
for (final t in a.type) {
|
||||
|
||||
Reference in New Issue
Block a user