This commit is contained in:
JackDandy 2023-09-22 23:04:40 +01:00
parent 150a7c9919
commit b7d5f4587c
2 changed files with 10 additions and 4 deletions

View file

@ -1,4 +1,10 @@
### 3.29.10 (2023-09-19 12:55:00 UTC) ### 3.29.11 (2023-09-22 23:00:00 UTC)
* Fix pytvmaze country handling in NetworkBase
* Update issue template
### 3.29.10 (2023-09-19 12:55:00 UTC)
* Fix Metacritic cards * Fix Metacritic cards
* Fix Linux CI tests * Fix Linux CI tests

View file

@ -620,17 +620,17 @@ class NetworkBase(object):
self.timezone = None self.timezone = None
self.code = None self.code = None
def _get_coutnry(self): def _get_country(self):
c = '' c = ''
if self.country: if self.country:
c = ' (%s)' % self.country c = ' (%s)' % self.country
return c return c
def __unicode__(self): def __unicode__(self):
return '%s%s' % (self.name, self._get_coutnry()) return '%s%s' % (self.name, self._get_country())
def __str__(self): def __str__(self):
return _valid_encoding('%s%s' % (self.name, self._get_coutnry())) return _valid_encoding('%s%s' % (self.name, self._get_country()))
class Network(NetworkBase): class Network(NetworkBase):