Fix include path for getID3/composer.
This commit is contained in:
parent
c5fb8657ca
commit
e92eff5107
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
//require_once 'getid3/getid3.php';
|
||||
require_once '../vendor/autoload.php';
|
||||
require_once dirname(__FILE__).'/../vendor/autoload.php';
|
||||
|
||||
$ini = parse_ini_file("/etc/homeaudio.ini");
|
||||
if ( isset($argv[1]) && ($argv[1] == "simulate") ) {
|
||||
|
@ -18,6 +17,7 @@ $globaldbh = new PDO("mysql:host={$ini['DBHOST']};dbname={$ini['DBNAME']}", $ini
|
|||
$ignoredirs = array();
|
||||
$ignoredirs[] = "Album Playlists";
|
||||
$ignoredirs[] = "Alphabetical";
|
||||
$ignoredirs[] = "Dad Music";
|
||||
$ignoredirs[] = "Incoming2";
|
||||
$ignoredirs[] = "Recent";
|
||||
$ignoredirs[] = "Recent (1-2 Months)";
|
||||
|
@ -80,7 +80,7 @@ function addNewSongs($path = "") {
|
|||
$newcount++;
|
||||
if ( ($newcount % 1000) == 0 ) echo ".";
|
||||
if ( SIMULATE ) {
|
||||
echo "Would have added: {$fields[':path']}/{$fields[':song']}\n";
|
||||
echo "Would have added: {$fields[':path']}{$fields[':song']}\n";
|
||||
} else {
|
||||
$sth_addnew->execute($fields);
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ addNewSongs();
|
|||
echo " ", $newcount, " songs added.\n";
|
||||
|
||||
echo "Parsing ID3 tags...";
|
||||
//$parsecount = parseSongs();
|
||||
//echo " ", $parsecount, " tags parsed.\n";
|
||||
$parsecount = parseSongs();
|
||||
echo " ", $parsecount, " tags parsed.\n";
|
||||
|
||||
// vim: set et ts=3 sw=3 ai mouse-=a:
|
||||
|
|
Loading…
Reference in New Issue
Block a user