EmbedMetadata/category/deviantart.py
elburg 86ea8ba4fa oops readded main.py
moved some stuff from xmp to deviantart
2023-02-05 13:58:50 -08:00

19 lines
No EOL
398 B
Python

def makeKeyWordList(tags):
catPaths = {
'digitalart/paintings/other': ['Digital Art', 'Paintings']
}
output = [
tags.da_category,
tags.license,
tags.author.username
]
if tags.is_mature:
output.append('is_mature')
for item in catPaths.get(tags.category_path,[]):
output.append(item)
for item in tags.category_path.split('/'):
output.append(item)