add numberStr to AoDEpisode type & show tmdb episode info in player

* use numberStr instead of index to display the correct episode number, allowing for number such as "12.5"
* show tmdb episode description in player if found and aod description is missing
This commit is contained in:
2021-09-05 00:08:03 +02:00
parent 062013489d
commit 5ea94b7ded
10 changed files with 44 additions and 26 deletions

View File

@ -393,7 +393,8 @@ object AoDParser {
description = episode.description,
shortDesc = episodesInfo[episode.mediaid]?.shortDesc ?: "",
imageURL = episode.image,
number = index,
numberStr = episode.title.substringAfter(", Ep. ", ""), // TODO move to parsePalylist
index = index,
watched = episodesInfo[episode.mediaid]?.watched ?: false,
watchedCallback = episodesInfo[episode.mediaid]?.watchedCallback ?: "",
streams = mutableListOf(Stream(episode.sources.first().file, aodPlaylist.language))