[Bug] Fix wrong season number for TV series (#85)

* [Bug] Fix wrong season  number for TV series
This commit is contained in:
Jace 2023-02-08 16:33:48 +08:00 committed by GitHub
parent f456a7cc92
commit 55b4086082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 2
version = 3
cloudstream {

View File

@ -96,8 +96,8 @@ class PinoyMoviesHub : MainAPI() {
}?.let { divEpSeason ->
if (divEpSeason.isNotEmpty()) {
if (divEpSeason.size > 1) {
epCount = divEpSeason[0]
seasCount = divEpSeason[1]
epCount = divEpSeason[1]
seasCount = divEpSeason[0]
} else {
epCount = divEpSeason[0]
}
@ -361,4 +361,4 @@ class PinoyMoviesHub : MainAPI() {
@JsonProperty("type") val type: String?,
@JsonProperty("file") val file: String?
)
}
}