-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreferences.py
More file actions
49 lines (41 loc) · 1.87 KB
/
Copy pathpreferences.py
File metadata and controls
49 lines (41 loc) · 1.87 KB
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
VERSION = '2.0.1'
# Filenames
LOG_FILENAME = 'log.txt'
BEACON_FILENAME = '.pytags-beacon'
# Datetime formats
ALIAS_DATETIME_FORMAT = '%Y%m%d-%H%M%S'
LOG_DATETIME_FORMAT = '%Y%m%d-%H%M%S'
# Log messages
LOGMSG_MISSING_DELETE = 'Unable to find path for deletion:'
LOGREC_MISSING_DELETE = 'Recommend database deletion and reindexing' # to implement
LOGMSG_DUPLICATE_ALIAS = 'Alias file already exists:' # to implement
LOGREC_DUPLICATE_ALIAS = 'Recommend database deletion and reindexing' # to implement
# Tags
RTAG = '%'
TAG_NOCAT = 'Others'
TAGS_DICT = {
# Specific tags
'Awesome Photo': ['Ratings', 'Awesome Photos'],
'Awesome Picture': ['Ratings', 'Awesome Photos'], # legacy
'Awesome Video': ['Ratings', 'Awesome Videos'],
'Great Photo': ['Ratings', 'Great Photos'],
'Great Picture': ['Ratings', 'Great Photos'], # legacy
'Great Video': ['Ratings', 'Great Videos'],
'Great Memories': ['Ratings', 'Great Memories'],
'Funny Picture': ['Ratings', 'Funny Picture'],
# Placeholder tags
f'type {RTAG}': ['Types', RTAG, None],
f'camera {RTAG}': ['Cameras', RTAG, None],
f'people {RTAG}': ['People', RTAG, None], # people in the photo/video
f'subject {RTAG}': ['Subjects', RTAG, None], # photo/video subject (not a person)
f'shot by {RTAG}': ['Photographers', RTAG, None],
# Legacy placeholder tags
f'type{RTAG}': ['Types', RTAG, 'space-before-uppercase'],
f'camera{RTAG}': ['Cameras', RTAG, 'space-before-uppercase'],
f'people{RTAG}': ['People', RTAG, 'space-before-uppercase'],
f'subject{RTAG}': ['Subjects', RTAG, 'space-before-uppercase'],
f'scene{RTAG}': ['Scenes (legacy)', RTAG, 'space-before-uppercase'],
f'shotby{RTAG}': ['Photographers', RTAG, 'space-before-uppercase']
}
# placeholder can only be the last element of the string, and only in subdir
# for tags with placeholder: [dir, subdir, format-instructions]