sora: support content ratings (#442)

#441
This commit is contained in:
Luna712 2023-12-09 13:01:24 -07:00 committed by GitHub
parent 9b05f65f2c
commit 4af99964f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,6 +300,7 @@ open class SoraStream : TmdbProvider() {
this.showStatus = getStatus(res.status) this.showStatus = getStatus(res.status)
this.recommendations = recommendations this.recommendations = recommendations
this.actors = actors this.actors = actors
this.contentRating = fetchContentRating(data.id, "US")
addTrailer(trailer) addTrailer(trailer)
addTMDbId(data.id.toString()) addTMDbId(data.id.toString())
addImdbId(res.external_ids?.imdb_id) addImdbId(res.external_ids?.imdb_id)
@ -334,6 +335,7 @@ open class SoraStream : TmdbProvider() {
this.rating = rating this.rating = rating
this.recommendations = recommendations this.recommendations = recommendations
this.actors = actors this.actors = actors
this.contentRating = fetchContentRating(data.id, "US")
addTrailer(trailer) addTrailer(trailer)
addTMDbId(data.id.toString()) addTMDbId(data.id.toString())
addImdbId(res.external_ids?.imdb_id) addImdbId(res.external_ids?.imdb_id)