Skip to content

Commit d45f98c

Browse files
authored
Merge pull request #11243 from pymedusa/release/release-1.0.15
Release/release 1.0.15
2 parents f694e94 + b0f3399 commit d45f98c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.0.15 (21-05-2023)
2+
3+
#### Fixes
4+
- Fix error with malformed TVDB data missing links
5+
6+
-----
7+
18
## 1.0.14 (20-05-2023)
29

310
#### Improvements

medusa/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
log.logger.addHandler(logging.NullHandler())
4040

4141
INSTANCE_ID = text_type(uuid.uuid1())
42-
VERSION = '1.0.14'
42+
VERSION = '1.0.15'
4343

4444
USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
4545
version=VERSION, system=platform.system(), release=platform.release(),

medusa/indexers/tvdbv2/api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ def _query_series(self, tvdb_id, specials=False, aired_season=None, full_info=Fa
270270
)
271271
if paged_episodes.data:
272272
results += paged_episodes.data
273-
last = paged_episodes.links.last
273+
if paged_episodes.links:
274+
last = paged_episodes.links.last
274275
page += 1
275276
else:
276277
while page <= last:
@@ -279,7 +280,8 @@ def _query_series(self, tvdb_id, specials=False, aired_season=None, full_info=Fa
279280
)
280281
if paged_episodes.data:
281282
results += paged_episodes.data
282-
last = paged_episodes.links.last
283+
if paged_episodes.links:
284+
last = paged_episodes.links.last
283285
page += 1
284286

285287
if results and full_info:

0 commit comments

Comments
 (0)