[fix] Offline mode display exception

This commit is contained in:
acite
2025-09-28 01:54:02 +08:00
parent 9bad0dcbc2
commit 2166229923
4 changed files with 16 additions and 8 deletions

View File

@@ -120,6 +120,10 @@ class FetchManager @Inject constructor(
}
suspend fun startVideoDownload(video: Video) {
if(getAllDownloadsAsync().any{
it.extras.getString("class", "") == video.klass && it.extras.getString("id", "") == video.id })
return
makeFolder(video)
File(
context.getExternalFilesDir(null),