Skip to content

Commit

Permalink
Make sure season parameter is a string for get_all_episodes(). Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
medariox committed Jan 24, 2018
1 parent c0f2ffe commit 4d567b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion medusa/server/web/home/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ def pickManualSearch(self, provider=None, rowid=None, manual_search_type='episod
for episode in cached_result[b'episodes'].strip('|').split('|'):
ep_objs.append(series_obj.get_episode(int(cached_result[b'season']), int(episode)))
elif manual_search_type == 'season':
ep_objs.extend(series_obj.get_all_episodes(int(cached_result[b'season'])))
ep_objs.extend(series_obj.get_all_episodes([int(cached_result[b'season'])]))

# Create the queue item
snatch_queue_item = ManualSnatchQueueItem(series_obj, ep_objs, provider, cached_result)
Expand Down
2 changes: 1 addition & 1 deletion medusa/tv/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def get_all_episodes(self, season=None, has_location=False):
"""Retrieve all episodes for this show given the specified filter.
:param season:
:type season: int
:type season: list
:param has_location:
:type has_location: bool
:return:
Expand Down

0 comments on commit 4d567b3

Please sign in to comment.