From 84e770aa82a084ea61c699b2c71cef99eb144737 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 7 Apr 2014 03:56:53 -0700 Subject: [PATCH] Fixes issue #310 bug in TorrentToMedia causing issues for HeadPhones --- TorrentToMedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 4cfbb0cb..0c21332d 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -129,7 +129,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): Logger.debug("MAIN: Scanning files in directory: %s", inputDirectory) if config.issubsection(inputCategory, "HeadPhones"): - noFlatten.extend(list(chain.from_iterable(config()[section].sections))) # Make sure we preserve folder structure for HeadPhones. + noFlatten.extend(list(chain.from_iterable(config.get_subsections("HeadPhones")))) # Make sure we preserve folder structure for HeadPhones. outputDestinationMaster = outputDestination # Save the original, so we can change this within the loop below, and reset afterwards. now = datetime.datetime.now()