mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-24 15:05:22 -07:00
Fix Fork Detection when parameters not exact match. #1838
This commit is contained in:
parent
f9dde62762
commit
8dde4c3535
1 changed files with 4 additions and 6 deletions
|
@ -166,12 +166,12 @@ class InitSickBeard(object):
|
||||||
fork = ['default', params]
|
fork = ['default', params]
|
||||||
|
|
||||||
elif fork == 'auto':
|
elif fork == 'auto':
|
||||||
fork = self.detect_fork()
|
self.detect_fork()
|
||||||
|
|
||||||
logger.info('{section}:{category} fork set to {fork}'.format
|
logger.info('{section}:{category} fork set to {fork}'.format
|
||||||
(section=self.section, category=self.input_category, fork=fork[0]))
|
(section=self.section, category=self.input_category, self.fork[0]))
|
||||||
core.FORK_SET = fork
|
core.FORK_SET = self.fork
|
||||||
self.fork, self.fork_params = fork[0], fork[1]
|
self.fork, self.fork_params = self.fork[0], self.fork[1]
|
||||||
# This will create the fork object, and attach to self.fork_obj.
|
# This will create the fork object, and attach to self.fork_obj.
|
||||||
self._init_fork()
|
self._init_fork()
|
||||||
return self.fork, self.fork_params
|
return self.fork, self.fork_params
|
||||||
|
@ -297,8 +297,6 @@ class InitSickBeard(object):
|
||||||
(section=self.section, category=self.input_category))
|
(section=self.section, category=self.input_category))
|
||||||
self.fork = list(core.FORKS.items())[list(core.FORKS.keys()).index(core.FORK_DEFAULT)]
|
self.fork = list(core.FORKS.items())[list(core.FORKS.keys()).index(core.FORK_DEFAULT)]
|
||||||
|
|
||||||
return fork
|
|
||||||
|
|
||||||
def _init_fork(self):
|
def _init_fork(self):
|
||||||
# These need to be imported here, to prevent a circular import.
|
# These need to be imported here, to prevent a circular import.
|
||||||
from .pymedusa import PyMedusa, PyMedusaApiV1, PyMedusaApiV2
|
from .pymedusa import PyMedusa, PyMedusaApiV1, PyMedusaApiV2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue