1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Merge pull request #932 from Hellowlol/addmoretoapi

Add location, filesize, subtitles and releasename
This commit is contained in:
echel0n 2014-11-22 09:04:00 -08:00
commit 607a91ce50

View File

@ -2313,7 +2313,7 @@ class CMD_ShowSeasons(ApiCall):
myDB = db.DBConnection(row_type="dict") myDB = db.DBConnection(row_type="dict")
if self.season == None: 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]) [self.indexerid])
seasons = {} seasons = {}
for row in sqlResults: for row in sqlResults:
@ -2332,7 +2332,7 @@ class CMD_ShowSeasons(ApiCall):
else: else:
sqlResults = myDB.select( 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]) [self.indexerid, self.season])
if len(sqlResults) is 0: if len(sqlResults) is 0:
return _responds(RESULT_FAILURE, msg="Season not found") return _responds(RESULT_FAILURE, msg="Season not found")