CC-84: Smart Playlists

- dynamic block length display
This commit is contained in:
James 2012-08-02 11:17:10 -04:00
parent f99574b723
commit 6e71a6bb92
4 changed files with 37 additions and 6 deletions

View file

@ -16,8 +16,8 @@ class LengthFormatter {
}
public function format() {
if ($this->_length == "N/A" || $this->_length == "") {
return "N/A";
if (!preg_match("/^[0-9]{2}:[0-9]{2}:[0-9]{2}/", $this->_length)) {
return $this->_length;
}
$pieces = explode(":", $this->_length);