diff --git a/distribusi.py b/distribusi.py index 9318531..7b3f6e8 100755 --- a/distribusi.py +++ b/distribusi.py @@ -20,7 +20,7 @@ else: mime_type = magic.Magic(mime=True) -file_types = {'image':'', 'pdf':'', +file_types = {'image':'', 'pdf':'', 'text':'{}', 'video':'', 'audio':''} code_types = ['x-c', 'html'] @@ -33,10 +33,10 @@ def div(mime, tag, *values): #name, full_path class_name = values[0].split('.')[0].replace(' ', '_') if 'image' in mime: - html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) + html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) elif 'pdf' in format: - html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) + html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) else: html = '
'.format(class_name)+tag+'
'.format(values[0]) return html