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 dd273fc664
commit 0d4ae9e9ef
4 changed files with 44 additions and 8 deletions

View File

@@ -18,11 +18,10 @@ if (substr($real_source_path, 0, strlen($real_source_dir)) != $real_source_dir)
return;
}
$source = new HandBrakeCluster_Rips_Source($source_path);
$source = HandBrakeCluster_Rips_Source::load($source_path);
$this->smarty->assign('source_path', $source_path);
$this->smarty->assign('source', $source);
$this->smarty->assign('output', $source->output());
$this->smarty->assign('titles', $source->titles());
?>