Files
handbrake-cluster-webui/webui/pages/rips/sources.php
Ben Roberts 76f2c4790d Reorganised code layout
Separated class library and web interface code
Added a common config/database config to be referenced by all
subprojects

Fixed previous commit
2010-08-14 15:36:31 +01:00

17 lines
464 B
PHP

<?php
$main = HandBrakeCluster_Main::instance();
$config = $main->config();
$lister = new HandBrakeCluster_Rips_SourceLister($config->get('rips.source_dir'));
$sources = $lister->sources();
$sources_cached = array();
foreach ($sources as $source) {
$sources_cached[$source->filename()] = HandBrakeCluster_Rips_Source::isCached($source->filename());
}
$this->smarty->assign('sources', $sources);
$this->smarty->assign('sources_cached', $sources_cached);
?>