Ticket #3627: scan_extensions.diff

File scan_extensions.diff, 426 bytes (added by spam@…, 13 years ago)

Retrieve valid extensions from database

  • scan.php

     
    1313/**/
    1414
    1515// List of valid video extentions
    16 $Known_Exts = array('ogm');
     16$Known_Exts = $db->query_list('SELECT extension FROM videotypes WHERE f_ignore = 0');
    1717
    1818// First delete any videos that do not exist anymore
    1919    $sh = $db->query('SELECT videometadata.intid,