Files
handbrake-cluster-webui/pages/browse/sources.php
Ben Roberts 0d4ae9e9ef Added caching to Sources
Added caching to Sources.
Updated the source browser to mark sources which are still cached
2010-03-21 23:16:56 +00:00

17 lines
440 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] = HandBrakeCluster_Rips_Source::isCached($source);
}
$this->smarty->assign('sources', $sources);
$this->smarty->assign('sources_cached', $sources_cached);
?>