mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
fix tv category detected when not enabled. Fixes #548
This commit is contained in:
parent
d904aafb99
commit
87f8e4df9a
2 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,10 @@ class Section(configobj.Section):
|
|||
|
||||
if not value:
|
||||
del to_return[subsection]
|
||||
else:
|
||||
for category in to_return[subsection]:
|
||||
if category != key:
|
||||
del to_return[subsection][category]
|
||||
|
||||
# cleanout empty sections and subsections
|
||||
for key in [k for (k, v) in to_return.items() if not v]:
|
||||
|
|
|
@ -17,8 +17,10 @@ else:
|
|||
print "FFPROBE FAILED"
|
||||
|
||||
test = nzbtomedia.CFG['SickBeard','NzbDrone']['tv'].isenabled()
|
||||
print test
|
||||
section = nzbtomedia.CFG.findsection('tv').isenabled()
|
||||
print section
|
||||
print len(section)
|
||||
fork, fork_params = autoFork('SickBeard', 'tv')
|
||||
|
||||
if server_responding("http://127.0.0.1:5050"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue