summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authork29t59dh <[email protected]>2023-08-04 09:10:32 -0400
committerGitHub <[email protected]>2023-08-04 09:10:32 -0400
commitf723f844677367421d06e83ae06f4421cf847377 (patch)
tree57b1e7e4c592518ed559c6dc6ac2256b59e56f67
parente0e5daea1de2ac8b6cbd0aa53ba284de70d5297c (diff)
downloadbazarr-f723f844677367421d06e83ae06f4421cf847377.tar.gz
bazarr-f723f844677367421d06e83ae06f4421cf847377.zip
Updated SignalR code to work with new ORM
-rw-r--r--bazarr/app/signalr_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/app/signalr_client.py b/bazarr/app/signalr_client.py
index e58bc7beb..047549174 100644
--- a/bazarr/app/signalr_client.py
+++ b/bazarr/app/signalr_client.py
@@ -269,8 +269,8 @@ def dispatcher(data):
.where(TableShows.sonarrSeriesId == data['body']['resource']['seriesId']))\
.first()
if series_metadata:
- series_title = series_metadata['title']
- series_year = series_metadata['year']
+ series_title = series_metadata.title
+ series_year = series_metadata.year
episode_title = data['body']['resource']['title']
season_number = data['body']['resource']['seasonNumber']
episode_number = data['body']['resource']['episodeNumber']