From 5026bfc54b0271550504f3e28cce3452151884cc Mon Sep 17 00:00:00 2001 From: reduplicated <110570621+reduplicated@users.noreply.github.com> Date: Fri, 5 Aug 2022 15:36:05 +0200 Subject: [PATCH 1/2] SuperStream fix bookmarks (you need to redo them if they do not work) and some shows not loading --- .../lagradost/cloudstream3/movieproviders/SuperStream.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SuperStream.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SuperStream.kt index 455f949f..296852ce 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SuperStream.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/SuperStream.kt @@ -376,7 +376,7 @@ class SuperStream : MainAPI() { @JsonProperty("thumbs_min") val thumbsMin: String? = null, @JsonProperty("thumbs_org") val thumbsOrg: String? = null, @JsonProperty("imdb_link") val imdbLink: String? = null, - @JsonProperty("quality_tags") val qualityTags: ArrayList = arrayListOf(), +// @JsonProperty("quality_tags") val qualityTags: ArrayList = arrayListOf(), // @JsonProperty("play_progress" ) val playProgress : PlayProgress? = PlayProgress() ) @@ -462,7 +462,7 @@ class SuperStream : MainAPI() { return newMovieLoadResponse( data.title ?: "", - data.imdbLink ?: "", + url, TvType.Movie, LinkData( data.id ?: throw RuntimeException("No movie ID"), @@ -493,7 +493,7 @@ class SuperStream : MainAPI() { return newTvSeriesLoadResponse( data.title ?: "", - data.imdbLink ?: data.tomatoUrl ?: "", + url, TvType.TvSeries, episodes.mapNotNull { Episode( From cce8cef6d0a7c6f02c787a656628ec675db1952b Mon Sep 17 00:00:00 2001 From: reduplicated <110570621+reduplicated@users.noreply.github.com> Date: Fri, 5 Aug 2022 15:47:21 +0200 Subject: [PATCH 2/2] Change backup to .txt to fix issues on some devices --- .../main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt index 6dbde4af..ea16a84d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt @@ -89,7 +89,9 @@ object BackupUtils { val newFile = ContentValues().apply { put(MediaStore.MediaColumns.DISPLAY_NAME, displayName) put(MediaStore.MediaColumns.TITLE, displayName) - put(MediaStore.MediaColumns.MIME_TYPE, "application/json") + // While it a json file we store as txt because not + // all file managers support mimetype json + put(MediaStore.MediaColumns.MIME_TYPE, "text/plain") //put(MediaStore.MediaColumns.RELATIVE_PATH, folder) }