Browse Source

Fix webapi (add show) wrong error message if show is not at info source.

tags/release_0.21.19^2
Prinz23 5 years ago
committed by JackDandy
parent
commit
da57c4c3ec
  1. 1
      CHANGES.md
  2. 8
      sickbeard/webapi.py

1
CHANGES.md

@ -1,6 +1,7 @@
### 0.21.19 (2019-03-08 15:45:00 UTC)
* Change update provider TL from v4/classic to V5
* Fix webapi (add show) wrong error message if show is not at info source
### 0.21.18 (2020-03-04 19:20:00 UTC)

8
sickbeard/webapi.py

@ -3242,9 +3242,9 @@ class CMD_SickGearShowAddExisting(ApiCall):
raise e
indexerName = None
if not myShow.data['seriesname']:
if None is myShow or getattr(t, 'show_not_found', False) or not myShow.data['seriesname']:
self.log(
u"Found show with tvid " + str(self.tvid) + " prodid " + str(self.prodid) + ", however it contained no show name",
"Found show with tvid %s prodid %s, however it contained no show name" % (self.tvid, self.prodid),
logger.DEBUG)
return _responds(RESULT_FAILURE, msg="Unable to retrieve information from indexer")
@ -3405,9 +3405,9 @@ class CMD_SickGearShowAddNew(ApiCall):
raise e
indexerName = None
if not myShow.data['seriesname']:
if None is myShow or getattr(t, 'show_not_found', False) or not myShow.data['seriesname']:
self.log(
u"Found show with tvid " + self.tvid + " prodid " + str(self.prodid) + ", however it contained no show name",
"Found show with tvid %s prodid %s, however it contained no show name" % (self.tvid, self.prodid),
logger.DEBUG)
return _responds(RESULT_FAILURE, msg="Unable to retrieve information from indexer")

Loading…
Cancel
Save