* @copyright 2001 - 2011 Ampache.org * @license http://opensource.org/licenses/gpl-2.0 GPLv2 * @version PHP 5.2 * @link http://www.ampache.org/ * @since File available since Release 1.0 */ define('NO_SESSION','1'); $path = dirname(__FILE__); $prefix = realpath($path . '/../'); require_once $prefix . '/lib/init.php'; // Turn off output buffering we don't need it for a command line script ob_end_clean(); $meta = 'linux'; // Take input from the command line, two options linux or windows if (count($_SERVER['argv']) > 1) { $meta = ($_SERVER['argv']['1'] == 'windows') ? 'windows' : 'linux'; } $catalogs = Catalog::get_catalogs(); foreach ($catalogs as $catalog_id) { Catalog::dump_album_art($catalog_id,array('metadata'=>$meta)); } ?>