EmbedMetadata/category/deviantart.py

19 lines
398 B
Python
Raw Normal View History

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)