Merge remote-tracking branch 'origin/master'

This commit is contained in:
reduplicated 2022-08-06 01:41:45 +02:00
commit c9f393d0e3
2 changed files with 6 additions and 4 deletions

View file

@ -376,7 +376,7 @@ class SuperStream : MainAPI() {
@JsonProperty("thumbs_min") val thumbsMin: String? = null, @JsonProperty("thumbs_min") val thumbsMin: String? = null,
@JsonProperty("thumbs_org") val thumbsOrg: String? = null, @JsonProperty("thumbs_org") val thumbsOrg: String? = null,
@JsonProperty("imdb_link") val imdbLink: String? = null, @JsonProperty("imdb_link") val imdbLink: String? = null,
@JsonProperty("quality_tags") val qualityTags: ArrayList<String> = arrayListOf(), // @JsonProperty("quality_tags") val qualityTags: ArrayList<String> = arrayListOf(),
// @JsonProperty("play_progress" ) val playProgress : PlayProgress? = PlayProgress() // @JsonProperty("play_progress" ) val playProgress : PlayProgress? = PlayProgress()
) )
@ -462,7 +462,7 @@ class SuperStream : MainAPI() {
return newMovieLoadResponse( return newMovieLoadResponse(
data.title ?: "", data.title ?: "",
data.imdbLink ?: "", url,
TvType.Movie, TvType.Movie,
LinkData( LinkData(
data.id ?: throw RuntimeException("No movie ID"), data.id ?: throw RuntimeException("No movie ID"),
@ -493,7 +493,7 @@ class SuperStream : MainAPI() {
return newTvSeriesLoadResponse( return newTvSeriesLoadResponse(
data.title ?: "", data.title ?: "",
data.imdbLink ?: data.tomatoUrl ?: "", url,
TvType.TvSeries, TvType.TvSeries,
episodes.mapNotNull { episodes.mapNotNull {
Episode( Episode(

View file

@ -89,7 +89,9 @@ object BackupUtils {
val newFile = ContentValues().apply { val newFile = ContentValues().apply {
put(MediaStore.MediaColumns.DISPLAY_NAME, displayName) put(MediaStore.MediaColumns.DISPLAY_NAME, displayName)
put(MediaStore.MediaColumns.TITLE, 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) //put(MediaStore.MediaColumns.RELATIVE_PATH, folder)
} }