mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Exclude download keys from backups
This commit is contained in:
parent
bb8144a52e
commit
e25fcc682b
2 changed files with 8 additions and 1 deletions
|
@ -35,6 +35,9 @@ import com.lagradost.cloudstream3.utils.DataStore.getSharedPrefs
|
||||||
import com.lagradost.cloudstream3.utils.DataStore.mapper
|
import com.lagradost.cloudstream3.utils.DataStore.mapper
|
||||||
import com.lagradost.cloudstream3.utils.UIHelper.checkWrite
|
import com.lagradost.cloudstream3.utils.UIHelper.checkWrite
|
||||||
import com.lagradost.cloudstream3.utils.UIHelper.requestRW
|
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 com.lagradost.cloudstream3.utils.VideoDownloadManager.setupStream
|
||||||
import okhttp3.internal.closeQuietly
|
import okhttp3.internal.closeQuietly
|
||||||
import java.io.OutputStream
|
import java.io.OutputStream
|
||||||
|
@ -68,6 +71,10 @@ object BackupUtils {
|
||||||
SUBDL_SUBTITLES_USER_KEY,
|
SUBDL_SUBTITLES_USER_KEY,
|
||||||
|
|
||||||
DOWNLOAD_EPISODE_CACHE,
|
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
|
"biometric_key", // can lock down users if backup is shared on a incompatible device
|
||||||
"nginx_user", // Nginx user key
|
"nginx_user", // Nginx user key
|
||||||
|
|
|
@ -180,7 +180,7 @@ object VideoDownloadManager {
|
||||||
|
|
||||||
const val KEY_RESUME_PACKAGES = "download_resume"
|
const val KEY_RESUME_PACKAGES = "download_resume"
|
||||||
const val KEY_DOWNLOAD_INFO = "download_info"
|
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 downloadStatus = HashMap<Int, DownloadType>()
|
||||||
val downloadStatusEvent = Event<Pair<Int, DownloadType>>()
|
val downloadStatusEvent = Event<Pair<Int, DownloadType>>()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue