|
|
@@ -179,4 +179,11 @@ foreach ($FILES as $FILE) {
|
|
|
}
|
|
|
unset($FILES);
|
|
|
|
|
|
+# Update priorities
|
|
|
+$priority = $dbh->prepare('UPDATE files SET priority = :priority WHERE path LIKE :path');
|
|
|
+$priority->execute(array(':priority' => 100, ':path' => 'Movies/%'));
|
|
|
+$priority->execute(array(':priority' => 50, ':path' => 'iTunes/%'));
|
|
|
+$priority->execute(array(':priority' => -50, ':path' => 'Backups/%'));
|
|
|
+$priority->execute(array(':priority' => -100, ':path' => 'TV/%'));
|
|
|
+
|
|
|
?>
|