Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/fix early wanted #10668

Merged
merged 3 commits into from
May 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added a default airs_time, when none provided by provider
  • Loading branch information
p0psicles committed May 24, 2022
commit 59f68509b4945b18e787c460227cf6c98a20429f
5 changes: 5 additions & 0 deletions medusa/indexers/tvmaze/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ def _get_show_by_id(self, tvmaze_id, request_language='en'): # pylint: disable=
return

mapped_results = self._map_results(results, self.series_map)

# Sanitize the airs_time. As for some shows this might be missing.
if not mapped_results.get('airs_time'):
mapped_results['airs_time'] = '0:00AM'

return OrderedDict({'series': mapped_results})

def _get_episodes(self, tvmaze_id, specials=False, *args, **kwargs): # pylint: disable=unused-argument
Expand Down