mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
switch on gist.github
This commit is contained in:
parent
ff05ad897d
commit
be3f00d126
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ object BackupUtils {
|
||||||
ioSafe {
|
ioSafe {
|
||||||
val gistUrl = githubApi.getLatestLoginData()?.server ?: throw IllegalAccessException()
|
val gistUrl = githubApi.getLatestLoginData()?.server ?: throw IllegalAccessException()
|
||||||
val jsondata = app.get(gistUrl).text
|
val jsondata = app.get(gistUrl).text
|
||||||
val dataraw = parseJson<GithubApi.gistsElements>(jsondata ?: "").files.values.first().dataRaw
|
val dataraw = parseJson<GithubApi.gistsElements>(jsondata ?: "").files.values.first().dataRaw?: throw IllegalAccessException()
|
||||||
val data = parseJson<BackupFile>(dataraw)
|
val data = parseJson<BackupFile>(dataraw)
|
||||||
this@restorePromptGithub.restore(
|
this@restorePromptGithub.restore(
|
||||||
data,
|
data,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue