Skip over invalid sonarr queue entries. Fixes #117
This commit is contained in:
parent
e3305765da
commit
02c1e7acd8
1 changed files with 7 additions and 1 deletions
|
@ -143,7 +143,13 @@ class SonarrAPI(object):
|
|||
return
|
||||
|
||||
for show in download_queue:
|
||||
try:
|
||||
sxe = f"S{show.episode['seasonNumber']:0>2}E{show.episode['episodeNumber']:0>2}"
|
||||
except TypeError as e:
|
||||
self.logger.error('TypeError has occurred : %s while processing the sonarr queue. \
|
||||
Remove invalid queue entries.', e)
|
||||
continue
|
||||
|
||||
if show.protocol.upper() == 'USENET':
|
||||
protocol_id = 1
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue