mirror of https://github.com/evilhero/mylar
collections error fix & catch no dir
This commit is contained in:
parent
633c8617e4
commit
f5d47e13b4
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import shlex
|
import shlex
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
@ -93,6 +94,9 @@ def addComictoDB(comicid):
|
||||||
#comic book location on machine
|
#comic book location on machine
|
||||||
# setup default location here
|
# setup default location here
|
||||||
comlocation = mylar.DESTINATION_DIR + "/" + comic['ComicName'] + " (" + comic['ComicYear'] + ")"
|
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":
|
#if mylar.REPLACE_SPACES == "yes":
|
||||||
#mylar.REPLACE_CHAR ...determines what to replace spaces with underscore or dot
|
#mylar.REPLACE_CHAR ...determines what to replace spaces with underscore or dot
|
||||||
mylarREPLACE_CHAR = '_'
|
mylarREPLACE_CHAR = '_'
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
from collections import Counter
|
#from collections import Counter
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import fileinput
|
import fileinput
|
||||||
|
|
Loading…
Reference in New Issue