fixed logic for ombi requests
This commit is contained in:
parent
73ce0057b5
commit
d6cef8b06b
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class OmbiAPI(object):
|
||||||
get_tv = connection_handler(self.session, tv_req, self.server.verify_ssl)
|
get_tv = connection_handler(self.session, tv_req, self.server.verify_ssl)
|
||||||
get_movie = connection_handler(self.session, movie_req, self.server.verify_ssl)
|
get_movie = connection_handler(self.session, movie_req, self.server.verify_ssl)
|
||||||
|
|
||||||
if not all([get_tv, get_movie]):
|
if not any([get_tv, get_movie]):
|
||||||
|
self.logger.error('No json replies. Discarding job')
|
||||||
return
|
return
|
||||||
|
|
||||||
movie_request_count = len(get_movie)
|
movie_request_count = len(get_movie)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue