Exclude download keys from backups

This commit is contained in:
Luna712 2024-07-20 10:34:07 -06:00 committed by GitHub
parent bb8144a52e
commit e25fcc682b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -35,6 +35,9 @@ import com.lagradost.cloudstream3.utils.DataStore.getSharedPrefs
import com.lagradost.cloudstream3.utils.DataStore.mapper
import com.lagradost.cloudstream3.utils.UIHelper.checkWrite
import com.lagradost.cloudstream3.utils.UIHelper.requestRW
import com.lagradost.cloudstream3.utils.VideoDownloadManager.KEY_DOWNLOAD_INFO
import com.lagradost.cloudstream3.utils.VideoDownloadManager.KEY_RESUME_PACKAGES
import com.lagradost.cloudstream3.utils.VideoDownloadManager.KEY_RESUME_QUEUE_PACKAGES
import com.lagradost.cloudstream3.utils.VideoDownloadManager.setupStream
import okhttp3.internal.closeQuietly
import java.io.OutputStream
@ -68,6 +71,10 @@ object BackupUtils {
SUBDL_SUBTITLES_USER_KEY,
DOWNLOAD_EPISODE_CACHE,
DOWNLOAD_HEADER_CACHE,
KEY_DOWNLOAD_INFO,
KEY_RESUME_PACKAGES,
KEY_RESUME_QUEUE_PACKAGES,
"biometric_key", // can lock down users if backup is shared on a incompatible device
"nginx_user", // Nginx user key

View file

@ -180,7 +180,7 @@ object VideoDownloadManager {
const val KEY_RESUME_PACKAGES = "download_resume"
const val KEY_DOWNLOAD_INFO = "download_info"
private const val KEY_RESUME_QUEUE_PACKAGES = "download_q_resume"
const val KEY_RESUME_QUEUE_PACKAGES = "download_q_resume"
val downloadStatus = HashMap<Int, DownloadType>()
val downloadStatusEvent = Event<Pair<Int, DownloadType>>()