Ticket #6431: mythvideoscan.diff
File mythvideoscan.diff, 634 bytes (added by , 15 years ago) |
---|
-
scan.php
old new 47 47 // Now scan for any new ones 48 48 $paths = explode(':', setting('VideoStartupDir', hostname)); 49 49 foreach ($paths as $path) { 50 exec("find -L $path - type f", $files, $retval);50 exec("find -L $path -name '.*' -prune -o -type f -print", $files, $retval); 51 51 foreach ($files as $file) { 52 52 if ( in_array(strtolower(pathinfo($file, PATHINFO_EXTENSION)), $Known_Exts) === FALSE 53 53 && strpos(`file -ib "$file"`, 'video') === FALSE )