CC-84: Smart Playlists
- dynamic block length display
This commit is contained in:
parent
f99574b723
commit
6e71a6bb92
4 changed files with 37 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue