Added MKV source/worker plugins, tidied sources page
Added placeholder for source plugin to read from an existing mkv file. Added corresponding worker placeholder to transcode an mkv file using ffmpeg. Updated the sources page to show which sources come from which plugins.
This commit is contained in:
@@ -18,7 +18,7 @@ class RippingCluster_Source {
|
||||
$this->plugin = $plugin;
|
||||
}
|
||||
|
||||
public static function isCached($source_filename) {
|
||||
public static function isSourceCached($source_filename) {
|
||||
$main = RippingCluster_Main::instance();
|
||||
$cache = $main->cache();
|
||||
$config = $main->config();
|
||||
@@ -26,6 +26,14 @@ class RippingCluster_Source {
|
||||
return $cache->exists($source_filename, $config->get('rips.cache_ttl'));
|
||||
}
|
||||
|
||||
public function isCached() {
|
||||
$main = RippingCluster_Main::instance();
|
||||
$cache = $main->cache();
|
||||
$config = $main->config();
|
||||
|
||||
return $cache->exists($this->filename, $config->get('rips.cache_ttl'));
|
||||
}
|
||||
|
||||
public function cache() {
|
||||
if (!$this->exists) {
|
||||
throw new RippingCluster_Exception_InvalidSourceDirectory();
|
||||
|
||||
Reference in New Issue
Block a user