From 13ecfd027afd044e54364ab12b2cfaefe7363e50 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 21 Nov 2014 22:10:19 +0100 Subject: [PATCH] Add location, filesize, subtitles and releasename to Show.Seasons --- sickbeard/webapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 71f8683c..1240b59d 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -2313,7 +2313,7 @@ class CMD_ShowSeasons(ApiCall): myDB = db.DBConnection(row_type="dict") if self.season == None: - sqlResults = myDB.select("SELECT name, episode, airdate, status, season FROM tv_episodes WHERE showid = ?", + sqlResults = myDB.select("SELECT name, episode, airdate, status, release_name, season, location, file_size, subtitles FROM tv_episodes WHERE showid = ?", [self.indexerid]) seasons = {} for row in sqlResults: @@ -2332,7 +2332,7 @@ class CMD_ShowSeasons(ApiCall): else: sqlResults = myDB.select( - "SELECT name, episode, airdate, status FROM tv_episodes WHERE showid = ? AND season = ?", + "SELECT name, episode, airdate, status, location, file_size, release_name, subtitles FROM tv_episodes WHERE showid = ? AND season = ?", [self.indexerid, self.season]) if len(sqlResults) is 0: return _responds(RESULT_FAILURE, msg="Season not found")