diff --git a/VERSION b/VERSION index 210926fd..0e112759 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop54 +1.16.5-develop55 diff --git a/modules/tvdb.py b/modules/tvdb.py index b48d967a..8e9fdc8c 100644 --- a/modules/tvdb.py +++ b/modules/tvdb.py @@ -93,11 +93,14 @@ class TVDbObj: self.writers = parse_page("//strong[text()='Writers']/parent::li/span/a/text()[normalize-space()]", is_list=True) self.studios = parse_page("//strong[text()='Studio']/parent::li/span/a/text()[normalize-space()]", is_list=True) released = parse_page("//strong[text()='Released']/parent::li/span/text()[normalize-space()]") - self.released = datetime.strptime(released, "%B %d, %Y") if released else released else: self.networks = parse_page("//strong[text()='Networks']/parent::li/span/a/text()[normalize-space()]", is_list=True) released = parse_page("//strong[text()='First Aired']/parent::li/span/text()[normalize-space()]") + try: self.released = datetime.strptime(released, "%B %d, %Y") if released else released + except ValueError: + self.released = None + self.genres = parse_page("//strong[text()='Genres']/parent::li/span/a/text()[normalize-space()]", is_list=True) tmdb_id = None