mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-24 13:55:16 +00:00
Merge branch 'hotfix/3.30.7'
This commit is contained in:
commit
d710ed1205
2 changed files with 13 additions and 7 deletions
|
@ -1,4 +1,9 @@
|
||||||
### 3.30.6 (2024-01-02 11:05:00 UTC)
|
### 3.30.7 (2024-01-10 14:20:00 UTC)
|
||||||
|
|
||||||
|
* Fix limit loaded cast (max 30) and crew (max 5) from TVmaze API
|
||||||
|
|
||||||
|
|
||||||
|
### 3.30.6 (2024-01-02 11:05:00 UTC)
|
||||||
|
|
||||||
* Fix Shows IMDb cards to new layout at IMDb
|
* Fix Shows IMDb cards to new layout at IMDb
|
||||||
* Change update fallback zoneinfo to 2023d
|
* Change update fallback zoneinfo to 2023d
|
||||||
|
|
|
@ -442,7 +442,8 @@ class Cast(object):
|
||||||
self.populate(data)
|
self.populate(data)
|
||||||
|
|
||||||
def populate(self, data):
|
def populate(self, data):
|
||||||
for cast_member in data:
|
if isinstance(data, list):
|
||||||
|
for cast_member in data[:30]:
|
||||||
self.people.append(Person(cast_member['person']))
|
self.people.append(Person(cast_member['person']))
|
||||||
self.characters.append(Character(cast_member['character'], cast_member))
|
self.characters.append(Character(cast_member['character'], cast_member))
|
||||||
self.people[-1].character = self.characters[-1] # add reference to character
|
self.people[-1].character = self.characters[-1] # add reference to character
|
||||||
|
@ -1476,7 +1477,7 @@ def get_show_crew(maze_id, raise_error=True):
|
||||||
url = endpoints.show_crew.format(maze_id)
|
url = endpoints.show_crew.format(maze_id)
|
||||||
q = TVmaze.endpoint_standard_get(url)
|
q = TVmaze.endpoint_standard_get(url)
|
||||||
if q:
|
if q:
|
||||||
return [Crew(crew) for crew in q]
|
return [Crew(crew) for crew in (isinstance(q, list) and q[:5]) or []]
|
||||||
elif raise_error:
|
elif raise_error:
|
||||||
raise CrewNotFound('Couldn\'t find crew for TVmaze ID {}'.format(maze_id))
|
raise CrewNotFound('Couldn\'t find crew for TVmaze ID {}'.format(maze_id))
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in a new issue