Skip to content

Commit

Permalink
fix channels update on serials
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed Jun 25, 2024
1 parent 4c405b8 commit c4dc2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/top/rootu/lampa/helpers/Helpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ object Helpers {
return try {
Gson().fromJson(json, cls)
} catch (e: Exception) {
if (BuildConfig.DEBUG) Log.d("*****", "Error getJson $json as ${cls!!.name}: $e")
null
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/top/rootu/lampa/models/Lampa.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ data class LampaCard(
val last_air_date: String?, // 2014, 2023-11-19
val number_of_seasons: Int?, // 1,
val number_of_episodes: Int?, // 12,
val next_episode_to_air: String?, // ""
// val next_episode_to_air: String?, // "" | { "id": 5220956, "overview": "", "name": "Эпизод 5", "vote_average": 7.5, "vote_count": 2, "air_date": "2024-06-25", "episode_number": 5, "episode_type": "standard", "production_code": "", "runtime": null, "season_number": 1, "show_id": 114479, "still_path": "/3ZPtAcaLnzJ6dAPw97hB9bKc19o.jpg" }
val persons: Persons?,
val simular: Simular?,
val status: String?, // "released", "Ended", "returning series", ...
Expand Down Expand Up @@ -226,7 +226,6 @@ data class LampaRec(
null,
null,
null,
null,
adult,
)
}
Expand Down

0 comments on commit c4dc2db

Please sign in to comment.