Ticket #6431: mythvideoscan.diff

File mythvideoscan.diff, 634 bytes (added by justdave, 17 years ago)

Patch to ignore dotfiles

  • scan.php

    old new  
    4747// Now scan for any new ones
    4848    $paths = explode(':', setting('VideoStartupDir', hostname));
    4949    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);
    5151        foreach ($files as $file) {
    5252            if ( in_array(strtolower(pathinfo($file, PATHINFO_EXTENSION)), $Known_Exts) === FALSE
    5353                 && strpos(`file -ib "$file"`, 'video')                                 === FALSE )