mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
Raising error when Downloader.do_download is not programmed correctly. Fixing any tests that were not using do_download correctly.
This commit is contained in:
parent
a510960c8c
commit
351351d90c
6 changed files with 31 additions and 54 deletions
|
|
@ -794,8 +794,8 @@ export function mimetypeIconName(mimetype, lowerPath = '') {
|
|||
return 'closed captioning';
|
||||
} else if (mimetype.startsWith('application/x-openscad') || mimetype.startsWith('model/stl')) {
|
||||
return 'cube';
|
||||
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi')) {
|
||||
return 'microsoft';
|
||||
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi') || mimetype.startsWith('application/vnd.microsoft.portable-executable')) {
|
||||
return 'windows';
|
||||
} else if (mimetype.startsWith('audio/')) {
|
||||
return 'file audio';
|
||||
} else if (mimetype.startsWith('application/vnd.openxmlformats-officedocument.wordprocessingml.document')) {
|
||||
|
|
@ -813,6 +813,8 @@ export function mimetypeIconName(mimetype, lowerPath = '') {
|
|||
return 'apple';
|
||||
} else if (lowerPath.endsWith('.azw3')) {
|
||||
return 'book';
|
||||
} else if (lowerPath.endsWith('.exe')) {
|
||||
return 'windows';
|
||||
}
|
||||
} else if (mimetype.startsWith('application/vnd.openxmlformats-officedocument.spreadsheetml.') || mimetype.startsWith('application/vnd.ms-excel') || mimetype.startsWith('application/vnd.oasis.opendocument.spreadsheet')) {
|
||||
return 'file excel'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue