From ce38317d48cae94c69522eb9c01fcefd9c654cc4 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 13 Apr 2014 16:30:51 -0700 Subject: [PATCH] Removed unrequired code --- nzbtomedia/Transcoder.py | 6 ------ nzbtomedia/extractor/extractor.py | 2 -- 2 files changed, 8 deletions(-) diff --git a/nzbtomedia/Transcoder.py b/nzbtomedia/Transcoder.py index 04d79c14..a26a642c 100644 --- a/nzbtomedia/Transcoder.py +++ b/nzbtomedia/Transcoder.py @@ -27,12 +27,6 @@ class Transcoder: ffmpeg = 'ffmpeg' useNiceness = True - logger.info("Loading config from %s", nzbtomedia.CONFIG_FILE) - - if not nzbtomedia.CFG: - logger.error("You need an autoProcessMedia.cfg file - did you rename and edit the .sample?") - return 1 # failure - mediaContainer = (nzbtomedia.CFG["Transcoder"]["duplicate"]) duplicate = int(nzbtomedia.CFG["Transcoder"]["duplicate"]) ignoreExtensions = (nzbtomedia.CFG["Transcoder"]["ignoreExtensions"]) diff --git a/nzbtomedia/extractor/extractor.py b/nzbtomedia/extractor/extractor.py index 0ed7b64d..e577db16 100644 --- a/nzbtomedia/extractor/extractor.py +++ b/nzbtomedia/extractor/extractor.py @@ -93,8 +93,6 @@ def extract(filePath, outputDestination): # Create outputDestination folder create_destination(outputDestination) - logger.info("Loading config from %s", nzbtomedia.CONFIG_FILE) - passwordsfile = nzbtomedia.CFG["passwords"]["PassWordFile"] if passwordsfile != "" and os.path.isfile(os.path.normpath(passwordsfile)): passwords = [line.strip() for line in open(os.path.normpath(passwordsfile))]