Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions sickbeard/autoPostProcesser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Author: Nic Wolfe <[email protected]>
stars# Author: Nic Wolfe <[email protected]>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
Expand All @@ -24,19 +24,20 @@
from sickbeard import encodingKludge as ek
from sickbeard import processTV


class PostProcesser():

def run(self):
if not sickbeard.PROCESS_AUTOMATICALLY:
return

if not ek.ek(os.path.isdir, sickbeard.TV_DOWNLOAD_DIR):
logger.log(u"Automatic post-processing attempted but dir " + sickbeard.TV_DOWNLOAD_DIR + " doesn't exist", logger.ERROR)
logger.log(u"Automatic post-processing attempted but dir " + sickbeard.TV_DOWNLOAD_DIR + " doesn't exist", logger.ERROR)
return

if not ek.ek(os.path.isabs, sickbeard.TV_DOWNLOAD_DIR):
logger.log(u"Automatic post-processing attempted but dir " + sickbeard.TV_DOWNLOAD_DIR + " is relative (and probably not what you really want to process)", logger.ERROR)
logger.log(u"Automatic post-processing attempted but dir " + sickbeard.TV_DOWNLOAD_DIR + " is relative (and probably not what you really want to process)", logger.ERROR)
return

processTV.processDir(sickbeard.TV_DOWNLOAD_DIR, method='Automatic')

processTV.processDir(sickbeard.TV_DOWNLOAD_DIR, method='Automatic')