基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
webdav: block download changes when download collectibles failed
Predidit7507f69c765a
diff --git a/lib/utils/webdav.dart b/lib/utils/webdav.dartindex 7fa8a4eb..18c23685 100644--- a/lib/utils/webdav.dart+++ b/lib/utils/webdav.dart@@ -160,19 +160,18 @@ class WebDav {});await Future.wait([collectiblesFuture, changesFuture]);++ // we should block download changes when download collectibles failed+ // download changes failed but collectibles success means remote files broken or newwork error+ // we should force push local collectibles to remote to fix ittry {remoteCollectibles = await GStorage.getCollectiblesFromFile('${webDavLocalTempDirectory.path}/collectibles.tmp');- } catch (e) {- KazumiLogger()- .log(Level.error, 'webDav get collectibles from file failed $e');- }- try {remoteChanges = await GStorage.getCollectChangesFromFile('${webDavLocalTempDirectory.path}/collectChanges.tmp');} catch (e) {KazumiLogger()- .log(Level.error, 'webDav get collect changes from file failed $e');+ .log(Level.error, 'webDav get collectibles from file failed $e');}if (remoteChanges.isNotEmpty || remoteCollectibles.isNotEmpty) {await GStorage.patchCollectibles(remoteCollectibles, remoteChanges);