rembo10/headphones — Issue #413: Postprocessing both nzb and torrents
Author: brentonr
Created: 2011-12-06 20:55:54+00:00
State: open

Maybe I'm missing something, but I have both NZBs and torrents set up, and manual postprocessing seems to skip the torrents if there are no folders found in the NZB folder, or headphones.DOWNLOAD_DIR (which is processed first.)

The problem seems to be in the while loop in function 'forcePostProcess': if no folders are found in an iteration of this loop, then it will return instead of allowing the loop to continue (in this case, it will return after finding no folders in ```headphones.DOWNLOAD_DIR``` and skip processing those folders in ```headphones.DOWNLOAD_TORRENT_DIR```):

if len(folders):
logger.info('Found %i folders to process' % len(folders))
pass
else:
logger.info('Found no folders to process in: %s' % download_dir)
return