mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
tweaks (#1802)
* opt: uuid * tweak * opt: SlideDialog * mod: fvmrc [skip ci] * Revert "mod: fvmrc [skip ci]" This reverts commit500fd7f454. * Revert "opt: SlideDialog" This reverts commitb435a312a6. --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
34a839d9e2
commit
c40d794180
@@ -246,8 +246,7 @@ class DownloadService extends GetxService {
|
||||
..entryDirPath = entryDir.path
|
||||
..status = DownloadStatus.wait;
|
||||
waitDownloadQueue.add(entry);
|
||||
final currStatus = curDownload.value?.status?.index;
|
||||
if (currStatus == null || currStatus > 3) {
|
||||
if (curDownload.value?.status.isDownloading != true) {
|
||||
startDownload(entry);
|
||||
}
|
||||
}
|
||||
@@ -285,9 +284,10 @@ class DownloadService extends GetxService {
|
||||
await _audioDownloadManager?.cancel(isDelete: false);
|
||||
_downloadManager = null;
|
||||
_audioDownloadManager = null;
|
||||
final prevStatus = curDownload.value?.status?.index;
|
||||
if (prevStatus != null && prevStatus <= 3) {
|
||||
curDownload.value?.status = DownloadStatus.pause;
|
||||
if (curDownload.value case final curEntry?) {
|
||||
if (curEntry.status.isDownloading) {
|
||||
curEntry.status = DownloadStatus.pause;
|
||||
}
|
||||
}
|
||||
|
||||
_curCid = entry.cid;
|
||||
@@ -372,13 +372,12 @@ class DownloadService extends GetxService {
|
||||
|
||||
_updateCurStatus(DownloadStatus.getPlayUrl);
|
||||
|
||||
final BiliDownloadMediaInfo mediaFileInfo =
|
||||
await DownloadHttp.getVideoUrl(
|
||||
entry: entry,
|
||||
ep: entry.ep,
|
||||
source: entry.source,
|
||||
pageData: entry.pageData,
|
||||
);
|
||||
final mediaFileInfo = await DownloadHttp.getVideoUrl(
|
||||
entry: entry,
|
||||
ep: entry.ep,
|
||||
source: entry.source,
|
||||
pageData: entry.pageData,
|
||||
);
|
||||
|
||||
final videoDir = Directory(path.join(entry.entryDirPath, entry.typeTag));
|
||||
if (!videoDir.existsSync()) {
|
||||
|
||||
Reference in New Issue
Block a user