From a1566c74188f81daf39347b8005e7cd7d760dae1 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 13 Feb 2018 13:02:32 +0000 Subject: [PATCH] Change improve thetvdb api response handling. --- CHANGES.md | 7 ++++++- lib/tvdb_api/tvdb_api.py | 2 +- lib/tvdb_api_v1/tvdb_api.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0c36493b..2cf333d3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.14.2 (2018-02-07 16:00:00 UTC) +### 0.14.3 (2018-02-13 13:00:00 UTC) + +Change improve thetvdb api response handling + + +### 0.14.2 (2018-02-07 16:00:00 UTC) Change add handling for where requesting disk freespace is denied permission on some Linux distros diff --git a/lib/tvdb_api/tvdb_api.py b/lib/tvdb_api/tvdb_api.py index d4830abc..c0f958f9 100644 --- a/lib/tvdb_api/tvdb_api.py +++ b/lib/tvdb_api/tvdb_api.py @@ -499,7 +499,7 @@ class Tvdb: 'tr': 21, 'pl': 18, 'fr': 17, 'hr': 31, 'de': 14, 'da': 10, 'fi': 11, 'hu': 19, 'ja': 25, 'he': 24, 'ko': 32, 'sv': 8, 'sl': 30} - if None is language: + if not language: self.config['language'] = 'en' else: if language not in self.config['valid_languages']: diff --git a/lib/tvdb_api_v1/tvdb_api.py b/lib/tvdb_api_v1/tvdb_api.py index b70ab366..36716645 100644 --- a/lib/tvdb_api_v1/tvdb_api.py +++ b/lib/tvdb_api_v1/tvdb_api.py @@ -488,7 +488,7 @@ class TvdbV1: 'tr': 21, 'pl': 18, 'fr': 17, 'hr': 31, 'de': 14, 'da': 10, 'fi': 11, 'hu': 19, 'ja': 25, 'he': 24, 'ko': 32, 'sv': 8, 'sl': 30} - if None is language: + if not language: self.config['language'] = 'en' else: if language not in self.config['valid_languages']: