-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
68 lines (52 loc) · 2.09 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#####################################################################################################
##
## constants.py - part of duplicatemanager, a script for comicrack
##
## Author: perezmu
##
## Copyleft perezmu 2011.
##
######################################################################################################
##########
#
# DEFINITIONS
import re
import clr
import System
import System.IO
from System.IO import Path, Directory, File, FileInfo
#
############# **** USER CONFIGURABLE VARIABLES *** ###########################################
#
# see http://code.google.com/p/comicrack-duplicates-manager/wiki/UserConfiguration for details
#
# These may also be set in the "dmrules.dat" rules file using this syntax: "@ OPTION VALUE". Values
# found in the "dmrules.dat" file override the defaults set in this file.
MOVEFILES = False
REMOVEFROMLIB = False
UPDATEINFO = False
DUPESDIRECTORY = Path.Combine("C:\\","__dupes__")
C2C_NOADS_GAP = 5 # Difference of pages between c2c and noads
SIZEMARGIN = 0 # Preserve comics within sizemargin % size
COVERPAGES = 4 # Minimal number of pages to be considered "covers only"
VERBOSE = False # Logging level (true/false)
DEBUG = False # Logging level (true/false)
#
############ DON'T MODIFY BELOW THIS LINE ######
#
VERSION= "0.9"
SCRIPTDIRECTORY = __file__[0:-len("constants.py")]
RULESFILE = Path.Combine(SCRIPTDIRECTORY, "dmrules.dat")
LOGFILE = Path.Combine(DUPESDIRECTORY, "logfile.log")
(SERIES,NUMBER,VOLUME,FILENAME,PAGECOUNT,FILESIZE,ID,CVDB_ID,FILEPATH,TAGS,NOTES,FILETYPE,SCAN,BOOK) = range(14)
FIELD_NAMES = ['series','number','volume','filename','pages','size','id','cvdb_id','path','tags','notes','type','scan','book']
FIELDS_TO_UPDATE_INFO = [
[ 'AlternateCount', lambda x: int(x) ],
[ 'AlternateNumber', lambda x: x ],
[ 'AlternateSeries', lambda x: x ],
[ 'Count', lambda x: int(x) ],
[ 'Title', lambda x: x ],
]
#
#
###########