mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Added admin clear & delete buttons for websites
This commit is contained in:
15
od_util.py
15
od_util.py
@@ -40,7 +40,8 @@ category_map = {
|
||||
'wiz': 'application', 'wsdl': 'application', 'xlb': 'application',
|
||||
'xls': 'application', 'xpdl': 'application', 'xsl': 'application',
|
||||
'torrent': 'application', 'rpm': 'application', 'deb': 'application',
|
||||
'atr': 'application',
|
||||
'atr': 'application', 'class': 'application', 'ttf': 'application',
|
||||
'img': 'application', 'msi': 'application', 'run': 'application',
|
||||
# Text category
|
||||
'java': 'text', 'cpp': 'text', 'rb': 'text',
|
||||
'bat': 'text', 'latex': 'text', 'xml': 'text',
|
||||
@@ -51,7 +52,10 @@ category_map = {
|
||||
'h': 'text', 'tsv': 'text', 'rtx': 'text',
|
||||
'sgm': 'text', 'sgml': 'text', 'txt': 'text',
|
||||
'vcf': 'text', 'pdf': 'text', 'epub': 'text',
|
||||
'srt': 'text',
|
||||
'srt': 'text', 'inc': 'text', 'php': 'text',
|
||||
'cbz': 'text', 'docx': 'text', 'mobi': 'text',
|
||||
'chm': 'text', 'xlsx': "text", 'djvu': 'text',
|
||||
'rtf': 'text', 'log': 'text', 'md': 'text',
|
||||
# Video category
|
||||
'3g2': 'video', '3gp': 'video', 'asf': 'video',
|
||||
'asx': 'video', 'avi': 'video', 'flv': 'video',
|
||||
@@ -60,13 +64,16 @@ category_map = {
|
||||
'm3u': 'video', 'm3u8': 'video', 'movie': 'video',
|
||||
'mp4': 'video', 'mpa': 'video', 'mpe': 'video',
|
||||
'mpeg': 'video', 'mpg': 'video', 'mkv': 'video',
|
||||
'wmv': 'video', 'm4s': 'video',
|
||||
'wmv': 'video', 'm4s': 'video', 'ogv': 'video',
|
||||
'm4b': 'video', 'm4v': 'video',
|
||||
# Audio category
|
||||
'wav': 'audio', 'snd': 'audio', 'mp2': 'audio',
|
||||
'aif': 'audio', 'iff': 'audio', 'm4a': 'audio',
|
||||
'mid': 'audio', 'midi': 'audio', 'mp3': 'audio',
|
||||
'wma': 'audio', 'ra': 'audio', 'aifc': 'audio',
|
||||
'aiff': 'audio', 'au': 'audio', 'flac': 'audio',
|
||||
'ogg': 'audio', 'oga': 'audio', 'mka': 'video',
|
||||
'ac3': 'audio',
|
||||
# Image category
|
||||
'bmp': 'image', 'gif': 'image', 'jpg': 'image',
|
||||
'xwd': 'image', 'tif': 'image', 'tiff': 'image',
|
||||
@@ -107,7 +114,7 @@ category_map = {
|
||||
'xp3': 'archive', 'yz1': 'archive', 'zip': 'archive',
|
||||
'zipx': 'archive', 'zoo': 'archive', 'zpaq': 'archive',
|
||||
'zz': 'archive', 'xpi': 'archive', 'tgz': 'archive',
|
||||
'tbz': 'archive',
|
||||
'tbz': 'archive', 'tar': 'archive', 'bz': 'archive',
|
||||
}
|
||||
|
||||
colors = {
|
||||
|
||||
Reference in New Issue
Block a user