mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Fix other sickbeard forks errorring. (#1813)
Co-authored-by: p0psicles <rogier@headshots.nl>
This commit is contained in:
parent
6a6b25fece
commit
f48812eccd
2 changed files with 5 additions and 4 deletions
|
@ -192,7 +192,8 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
|||
)
|
||||
|
||||
# Part of the refactor
|
||||
init_sickbeard.fork.initialize(dir_name, input_name, failed, client_agent='manual')
|
||||
if init_sickbeard.fork_obj:
|
||||
init_sickbeard.fork_obj.initialize(dir_name, input_name, failed, client_agent='manual')
|
||||
|
||||
# configure SB params to pass
|
||||
fork_params['quiet'] = 1
|
||||
|
@ -321,8 +322,8 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
|||
|
||||
try:
|
||||
if section == 'SickBeard':
|
||||
if init_sickbeard.fork:
|
||||
r = init_sickbeard.fork.api_call()
|
||||
if init_sickbeard.fork_obj:
|
||||
r = init_sickbeard.fork_obj.api_call()
|
||||
else:
|
||||
s = requests.Session()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue