mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Add wait_for as a valid option for pyMedusa
This commit is contained in:
parent
c2eaa72a2c
commit
7ca52d103b
3 changed files with 3 additions and 2 deletions
|
@ -224,6 +224,7 @@
|
||||||
watch_dir =
|
watch_dir =
|
||||||
##### Set the recursive directory permissions to the following (0 to disable)
|
##### Set the recursive directory permissions to the following (0 to disable)
|
||||||
chmodDirectory = 0
|
chmodDirectory = 0
|
||||||
|
wait_for = 10
|
||||||
|
|
||||||
[NzbDrone]
|
[NzbDrone]
|
||||||
#### Formerly known as NzbDrone this is now Sonarr
|
#### Formerly known as NzbDrone this is now Sonarr
|
||||||
|
|
|
@ -120,7 +120,7 @@ class PyMedusaApiV2(SickBeard):
|
||||||
|
|
||||||
queueitem_identifier = jdata['queueItem']['identifier']
|
queueitem_identifier = jdata['queueItem']['identifier']
|
||||||
|
|
||||||
wait_for = self.sb_init.config.get('wait_for', 2)
|
wait_for = int(self.sb_init.config.get('wait_for', 2))
|
||||||
n = 0
|
n = 0
|
||||||
response = {}
|
response = {}
|
||||||
url = '{0}/{1}'.format(url, queueitem_identifier)
|
url = '{0}/{1}'.format(url, queueitem_identifier)
|
||||||
|
|
|
@ -178,7 +178,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
if section in ['CouchPotato', 'HeadPhones', 'Gamez', 'Mylar']:
|
if section in ['CouchPotato', 'HeadPhones', 'Gamez', 'Mylar']:
|
||||||
if option in ['username', 'password']:
|
if option in ['username', 'password']:
|
||||||
values.pop(option)
|
values.pop(option)
|
||||||
if section in ['SickBeard', 'Mylar']:
|
if section in ['Mylar']:
|
||||||
if option == 'wait_for': # remove old format
|
if option == 'wait_for': # remove old format
|
||||||
values.pop(option)
|
values.pop(option)
|
||||||
if section in ['SickBeard', 'NzbDrone']:
|
if section in ['SickBeard', 'NzbDrone']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue