Added caching to Sources

Added caching to Sources.
Updated the source browser to mark sources which are still cached
This commit is contained in:
2010-03-21 23:16:56 +00:00
parent b166e125f5
commit 648968bcb7
4 changed files with 44 additions and 8 deletions

View File

@@ -4,7 +4,14 @@ $main = HandBrakeCluster_Main::instance();
$config = $main->config();
$lister = new HandBrakeCluster_Rips_SourceLister($config->get('rips.source_dir'));
$sources = $lister->sources();
$this->smarty->assign('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);
?>