add support for more audio/video formats/extensions:

* video: mp4, mpg, mpeg, mov, avi, wmv, flv, webm
 * audio: .aiff, .aif, .wma, .aac, .flac, .mp3, .ogg, .m4a
 * use Nitrux icons (http://deviantn7k1.deviantart.com/art/Nitrux-293634207) for audio and video icons
This commit is contained in:
nodiscc 2014-09-11 15:20:13 +02:00
parent 878a034094
commit 54d6fc754f
4 changed files with 3 additions and 1 deletions

BIN
images/filetype_AUDIO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
images/filetype_VIDEO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -273,7 +273,9 @@ if (file_exists($currentdir ."/captions.txt"))
if (preg_match("/.doc$|.docx$/i", $file)) $extension = "DOCX"; // Word
if (preg_match("/.ppt$|.pptx$/i", $file)) $extension = "PPTX"; //Powerpoint
if (preg_match("/.xls$|.xlsx$/i", $file)) $extension = "XLXS"; // Excel
if (preg_match("/.ogv$/i", $file)) $extension = "OGV"; // OGV video
if (preg_match("/.ogv$|.mp4$|.mpg$|.mpeg$|.mov$|.avi$|.wmv$|.flv$|.webm$/i", $file)) $extension = "VIDEO"; // video files
if (preg_match("/.aiff$|.aif$|.wma$|.aac$|.flac$|.mp3$|.ogg$|.m4a$/i", $file)) $extension = "AUDIO"; // audio files
if ($extension != "")
{