Implemented HBC parser to read all useful info about titles

Titles, chapters, audio and subtitle streams and metadata are now parsed from the handbrakecli output into title objects.
Source-details page now renders this info
This commit is contained in:
2010-03-21 16:12:21 +00:00
parent 0477d7363f
commit 50283e9a9b
7 changed files with 371 additions and 13 deletions

View File

@@ -0,0 +1,53 @@
<?php
class HandBrakeCluster_Rips_SourceAudioTrack {
protected $id;
protected $name;
protected $format;
protected $channels;
protected $language;
protected $samplerate;
protected $bitrate;
public function __construct($id, $name, $format, $channels, $language, $samplerate, $bitrate) {
$this->id = $id;
$this->name = $name;
$this->format = $format;
$this->channels = $channels;
$this->language = $language;
$this->samplerate = $samplerate;
$this->bitrate = $bitrate;
}
public function id() {
return $this->id;
}
public function name() {
return $name;
}
public function format() {
return $this->format;
}
public function channels() {
return $this->channels;
}
public function language() {
return $this->language;
}
public function samplerate() {
return $this->samplerate;
}
public function bitrate() {
return $this->bitrate;
}
};
?>