fix tv category detected when not enabled. Fixes #548

This commit is contained in:
clinton-hall 2014-09-01 07:11:25 +09:30
commit 87f8e4df9a
2 changed files with 6 additions and 0 deletions

View file

@ -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]:

View file

@ -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"):