From bd582d18d0d7ddb174e1f20aee765bb5315bab09 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 18 Jun 2014 09:28:03 -0700 Subject: [PATCH] Fix for showPoster() api calls --- sickbeard/webapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index c6585b55..64a969db 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -2103,7 +2103,7 @@ class CMD_ShowGetPoster(ApiCall): def run(self): """ get the poster for a show in sickbeard """ - return {'outputType': 'image', 'image': webserve.IndexHandler.showPoster(self.indexerid, 'poster')} + return {'outputType': 'image', 'image': webserve.IndexHandler(self.application, self.request).showPoster(self.indexerid, 'poster')} class CMD_ShowGetBanner(ApiCall): @@ -2121,7 +2121,7 @@ class CMD_ShowGetBanner(ApiCall): def run(self): """ get the banner for a show in sickbeard """ - return {'outputType': 'image', 'image': webserve.IndexHandler.showPoster(self.indexerid, 'banner')} + return {'outputType': 'image', 'image': webserve.IndexHandler(self.application, self.request).showPoster(self.indexerid, 'banner')} class CMD_ShowPause(ApiCall):