From 823451416bfd8546a8c9adc2232c394f595bc7dc Mon Sep 17 00:00:00 2001 From: Roland Ernst Date: Sat, 1 Jun 2024 20:14:31 +0200 Subject: [PATCH] Python tmdb3tv: Allow specials with season number 0 Special episodes are marked with season number 0 in themoviedb.org/tv and thetvdb.com queries. Fixes #902 --- mythtv/bindings/python/tmdb3/tmdb3/lookup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mythtv/bindings/python/tmdb3/tmdb3/lookup.py b/mythtv/bindings/python/tmdb3/tmdb3/lookup.py index 7ac547f4758..614797a7e9c 100644 --- a/mythtv/bindings/python/tmdb3/tmdb3/lookup.py +++ b/mythtv/bindings/python/tmdb3/tmdb3/lookup.py @@ -12,7 +12,7 @@ #----------------------- __title__ = "TheMovieDB.org V3" __author__ = "Raymond Wagner, Roland Ernst" -__version__ = "0.3.10" +__version__ = "0.3.11" # 0.1.0 Initial version # 0.2.0 Add language support, move cache to home directory # 0.3.0 Enable version detection to allow use in MythTV @@ -31,6 +31,7 @@ # 0.3.8 Sort posters by system language or 'en', if not found for given language # 0.3.9 Support TV lookup # 0.3.10 Use new API for release dates for movies +# 0.3.11 Allow queries for specials in series in TV lookup # ~ from optparse import OptionParser import sys @@ -340,7 +341,7 @@ def buildEpisode(args, opts): # process seasons backwards because it is more likely # that you have a recent one than an old one - while season_number > 0: + while season_number >= 0: season = Season(inetref,str(season_number)) if episode_number: episode = season.episodes[episode_number]