collections error fix & catch no dir

This commit is contained in:
evilhero 2012-09-10 00:56:34 -04:00
parent 633c8617e4
commit f5d47e13b4
3 changed files with 5 additions and 1 deletions

BIN
cache/blankcover.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -15,6 +15,7 @@
import time
import os
import sys
import shlex
import datetime
@ -93,6 +94,9 @@ def addComictoDB(comicid):
#comic book location on machine
# setup default location here
comlocation = mylar.DESTINATION_DIR + "/" + comic['ComicName'] + " (" + comic['ComicYear'] + ")"
if mylar.DESTINATION_DIR == "":
logger.error(u"There is no general directory specified - please specify in Config/Post-Processing.")
return
#if mylar.REPLACE_SPACES == "yes":
#mylar.REPLACE_CHAR ...determines what to replace spaces with underscore or dot
mylarREPLACE_CHAR = '_'

View File

@ -16,7 +16,7 @@
from __future__ import print_function
from collections import Counter
#from collections import Counter
import sys
import fileinput