mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix invalid responses when using sickbeard.searchtvdb api command
This commit is contained in:
parent
793005d58f
commit
16b146284d
@ -40,6 +40,7 @@
|
|||||||
* Add handling for when deleting a show and the show folder no longer exists
|
* Add handling for when deleting a show and the show folder no longer exists
|
||||||
* Fix Coming Episodes/Layout Calender/View Paused and tweak its UI text
|
* Fix Coming Episodes/Layout Calender/View Paused and tweak its UI text
|
||||||
* Made all init scripts executable
|
* Made all init scripts executable
|
||||||
|
* Fix invalid responses when using sickbeard.searchtvdb api command
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Change improve display of progress bars in the Downloads columns of the show list page
|
* Change improve display of progress bars in the Downloads columns of the show list page
|
||||||
|
@ -1595,7 +1595,7 @@ class CMD_SickBeardSearchIndexers(ApiCall):
|
|||||||
self.name, args = self.check_params(args, kwargs, "name", None, False, "string", [])
|
self.name, args = self.check_params(args, kwargs, "name", None, False, "string", [])
|
||||||
self.indexerid, args = self.check_params(args, kwargs, "indexerid", None, False, "int", [])
|
self.indexerid, args = self.check_params(args, kwargs, "indexerid", None, False, "int", [])
|
||||||
self.lang, args = self.check_params(args, kwargs, "lang", "en", False, "string", self.valid_languages.keys())
|
self.lang, args = self.check_params(args, kwargs, "lang", "en", False, "string", self.valid_languages.keys())
|
||||||
self.indexer, args = self.check_params(args, kwargs, "indexer", None, False, "string", [])
|
self.indexer, args = self.check_params(args, kwargs, "indexer", 1, False, "int", [])
|
||||||
|
|
||||||
# super, missing, help
|
# super, missing, help
|
||||||
ApiCall.__init__(self, handler, args, kwargs)
|
ApiCall.__init__(self, handler, args, kwargs)
|
||||||
@ -1620,10 +1620,11 @@ class CMD_SickBeardSearchIndexers(ApiCall):
|
|||||||
|
|
||||||
results = []
|
results = []
|
||||||
for curSeries in apiData:
|
for curSeries in apiData:
|
||||||
results.append({"indexerid": int(curSeries.findtext('seriesid')),
|
results.append({"indexerid": int(curSeries['id']),
|
||||||
"tvdbid": int(curSeries.findtext('seriesid')),
|
"tvdbid": int(curSeries['id']),
|
||||||
"name": curSeries.findtext('SeriesName'),
|
"name": curSeries['seriesname'],
|
||||||
"first_aired": curSeries.findtext('FirstAired')})
|
"first_aired": curSeries['firstaired'],
|
||||||
|
"indexer": self.indexer})
|
||||||
|
|
||||||
lang_id = self.valid_languages[self.lang]
|
lang_id = self.valid_languages[self.lang]
|
||||||
return _responds(RESULT_SUCCESS, {"results": results, "langid": lang_id})
|
return _responds(RESULT_SUCCESS, {"results": results, "langid": lang_id})
|
||||||
|
Loading…
Reference in New Issue
Block a user