mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix absolute episodes scanning
This commit is contained in:
parent
1dd5c6b9f4
commit
80a6ac0c80
@ -390,9 +390,9 @@ class TheMovieDatabase(Provider):
|
||||
and (season is None or episode_nbr is None)
|
||||
and show_id in self.absolute_episode_cache
|
||||
and self.absolute_episode_cache[show_id] is not None
|
||||
and absolute in self.absolute_episode_cache[show_id]
|
||||
):
|
||||
# Using absolute - 1 since the array is 0based (absolute episode 1 is at index 0)
|
||||
and len(self.absolute_episode_cache[show_id]) >= absolute
|
||||
):
|
||||
season = self.absolute_episode_cache[show_id][absolute - 1]["season_number"]
|
||||
episode_nbr = self.absolute_episode_cache[show_id][absolute - 1][
|
||||
"episode_number"
|
||||
|
Loading…
x
Reference in New Issue
Block a user