Added setup-rip page to configure new rip task
Added method to Source to identify the longest title in a source
This commit is contained in:
@@ -41,6 +41,11 @@ class HandBrakeCluster_Rips_SourceTitle {
|
||||
return $this->duration;
|
||||
}
|
||||
|
||||
public function durationInSeconds() {
|
||||
$time = explode(":", $this->duration);
|
||||
return ($time[0] * 3600) + ($time[1] * 60) + $time[2];
|
||||
}
|
||||
|
||||
public function setDuration($duration) {
|
||||
$this->duration = $duration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user