Commit be8402e3 authored by echel0n's avatar echel0n

Fixed JSON serialization issue with quicksearch

parent 788f0283
......@@ -338,16 +338,14 @@ class Core(object):
self.config.migrate_config_file(self.config_file)
# add server id tag to sentry
if sickrage.app.config.general and sickrage.app.config.general.server_id:
sentry_sdk.set_tag('server_id', sickrage.app.config.general.server_id)
sentry_sdk.set_tag('server_id', sickrage.app.config.general.server_id)
# add user to sentry
if sickrage.app.config.user and sickrage.app.config.user.sub_id:
sentry_sdk.set_user({
'id': sickrage.app.config.user.sub_id,
'username': sickrage.app.config.user.username,
'email': sickrage.app.config.user.email
})
sentry_sdk.set_user({
'id': sickrage.app.config.user.sub_id,
'username': sickrage.app.config.user.username,
'email': sickrage.app.config.user.email
})
# config overrides
if self.web_port:
......
......@@ -234,7 +234,7 @@ class QuicksearchDotJsonHandler(BaseHandler, ABC):
shows.append({
'category': 'shows',
'series_id': result.series_id,
'series_provider_id': result.series_provider_id,
'series_provider_id': result.series_provider_id.name,
'seasons': len(set([s.season for s in result.episodes])),
'name': result.name,
'img': sickrage.app.config.general.web_root + series_image(result.series_id, result.series_provider_id, SeriesImageType.POSTER_THUMB).url
......@@ -248,7 +248,7 @@ class QuicksearchDotJsonHandler(BaseHandler, ABC):
episodes.append({
'category': 'episodes',
'series_id': result.series_id,
'series_provider_id': result.series_provider_id,
'series_provider_id': result.series_provider_id.name,
'episode_id': result.episode_id,
'season': result.season,
'episode': result.episode,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment