0.8.0.2
This commit is contained in:
118
filetypes.php
118
filetypes.php
@@ -19,9 +19,9 @@ $bin_flacicon = escapeshellarg(__DIR__."/bin/flacicon");
|
||||
$bin_flacdiricon = escapeshellarg(__DIR__."/bin/flacdiricon");
|
||||
|
||||
// System tools
|
||||
$bin_php = "php";
|
||||
$bin_qlmanage = "qlmanage";
|
||||
$bin_sips = "sips";
|
||||
$bin_php = "/usr/bin/php";
|
||||
$bin_qlmanage = "/usr/bin/qlmanage";
|
||||
$bin_sips = "/usr/bin/sips";
|
||||
|
||||
// External tools
|
||||
$bin_vips = "/opt/local/bin/vipsthumbnail";
|
||||
@@ -76,51 +76,59 @@ $p['c_files'] = array( "DS_Store",
|
||||
"doc",
|
||||
"docx" );
|
||||
|
||||
// Use ffmpeg to generate thumbnails for these files
|
||||
$p['t_files']['ffmpeg'] = array( "mkv",
|
||||
"avi",
|
||||
"mpeg",
|
||||
"mpg",
|
||||
"vob",
|
||||
"mp4",
|
||||
"m4v",
|
||||
"m2v",
|
||||
"m2ts",
|
||||
"asf",
|
||||
"wmv",
|
||||
"rm",
|
||||
"divx",
|
||||
"fla",
|
||||
"flv",
|
||||
"webm" );
|
||||
// Thumbnail bindings
|
||||
|
||||
$p['t_b']['mkv'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['avi'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['mpeg'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['mpg'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['vob'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['mp4'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['m4v'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['m2v'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['m2ts'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['asf'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['wmv'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['rm'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['divx'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['fla'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['flv'] = array("ql-thumbnail","ffmpeg");
|
||||
$p['t_b']['webm'] = array("ql-thumbnail","ffmpeg");
|
||||
|
||||
// Use sips to generate thumbnails for these files
|
||||
// SIPS does not currently support JPEG Orientation EXIF Tag,
|
||||
// so images will sometimes appear sideways
|
||||
//$p['t_files']['sips'] = array( "jpg",
|
||||
// "jpeg",
|
||||
// "tif",
|
||||
// "tiff",
|
||||
// "gif",
|
||||
// "psd",
|
||||
// "png",
|
||||
// "heic",
|
||||
// "pdf",
|
||||
// "ai",
|
||||
// "ps",
|
||||
// "bmp",
|
||||
// "pict",
|
||||
// "jp2" );
|
||||
$p['t_b']['jpg'] = array("sips","ql-thumbnail","vips");
|
||||
$p['t_b']['jpeg'] = array("sips","ql-thumbnail","vips");
|
||||
$p['t_b']['png'] = array("sips","ql-thumbnail","vips");
|
||||
|
||||
// Use sox to generate thumbnails for these files
|
||||
$p['t_files']['sox'] = array( "flac",
|
||||
"wav",
|
||||
"aif",
|
||||
"aiff" );
|
||||
$p['t_b']['tif'] = array("vips","sips","ql-thumbnail");
|
||||
$p['t_b']['tiff'] = array("vips","sips","ql-thumbnail");
|
||||
|
||||
// Don't make thumbnails for these files
|
||||
$p['t_skip'] = array( "emlx",
|
||||
"DS_Store" );
|
||||
$p['t_b']['nik'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['dng'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['gif'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['psd'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['heic'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['pdf'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['ai'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['ps'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['bmp'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['pict'] = array("ql-thumbnail","sips","vips");
|
||||
$p['t_b']['jp2'] = array("ql-thumbnail","sips","vips");
|
||||
|
||||
$p['t_b']['flac'] = array("sox");
|
||||
$p['t_b']['wav'] = array("sox");
|
||||
$p['t_b']['aif'] = array("sox");
|
||||
$p['t_b']['aiff'] = array("sox");
|
||||
$p['t_b']['au'] = array("sox");
|
||||
$p['t_b']['wv'] = array("sox");
|
||||
$p['t_b']['snd'] = array("sox");
|
||||
$p['t_b']['voc'] = array("sox");
|
||||
|
||||
$p['t_b']['mp3'] = array("sox","ql-thumbnail");
|
||||
$p['t_b']['m4a'] = array("sox","ql-thumbnail");
|
||||
$p['t_b']['m4b'] = array("sox","ql-thumbnail");
|
||||
$p['t_b']['ogg'] = array("sox","ql-thumbnail");
|
||||
|
||||
$p['t_b']['*'] = "ql-thumbnail";
|
||||
|
||||
// Don't make icons for these files
|
||||
$p['i_skip'] = array( "jpg",
|
||||
@@ -136,6 +144,16 @@ $p['i_skip'] = array( "jpg",
|
||||
"aif",
|
||||
"zip",
|
||||
"DS_Store" );
|
||||
|
||||
// Make sox preview icons for these files
|
||||
$p['i_sox'] = array( "flac",
|
||||
"wav",
|
||||
"aif",
|
||||
"aiff",
|
||||
"au",
|
||||
"wv",
|
||||
"snd",
|
||||
"voc" );
|
||||
|
||||
// Run mediainfo on these files
|
||||
$p['m_files'] = array( "mkv",
|
||||
@@ -240,10 +258,8 @@ foreach ($p['bundles'] as $bundle) { $p['nodescend'][] = "*.".$bundle; }
|
||||
foreach ($p['c_files'] as $ext) { $p['c_files'][] = strtoupper($ext); }
|
||||
foreach ($p['e_files'] as $ext) { $p['e_files'][] = strtoupper($ext); }
|
||||
foreach ($p['m_files'] as $ext) { $p['m_files'][] = strtoupper($ext); }
|
||||
foreach ($p['t_files']['ffmpeg'] as $ext) { $p['t_files']['ffmpeg'][] = strtoupper($ext); }
|
||||
//foreach ($p['t_files']['sips'] as $ext) { $p['t_files']['sips'][] = strtoupper($ext); }
|
||||
foreach ($p['t_skip'] as $ext) { $p['t_skip'][] = strtoupper($ext); }
|
||||
foreach ($p['i_skip'] as $ext) { $p['i_skip'][] = strtoupper($ext); }
|
||||
foreach ($p['i_sox'] as $ext) { $p['i_sox'][] = strtoupper($ext); }
|
||||
foreach ($p['p_files'] as $file) { $p['p_files'][] = strtoupper($file); }
|
||||
|
||||
// Spotlight //////////////////////////////////////////
|
||||
@@ -289,4 +305,10 @@ foreach (array_merge($mb['t'],$mb['a']) as $item) {
|
||||
|
||||
unset($item);
|
||||
|
||||
// Album dirs //////////////////////////////////////////
|
||||
|
||||
$p['album_files'] = array("flac","mp3","mp4","wav","ogg","aiff","aif");
|
||||
$p['cover_files'] = array("cover","folder","front","dir");
|
||||
$p['cover_exts'] = array("jpg","jpeg","png");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user