diff --git a/airtime_mvc/application/models/Playlist.php b/airtime_mvc/application/models/Playlist.php index c99fbb019..27b11fe67 100644 --- a/airtime_mvc/application/models/Playlist.php +++ b/airtime_mvc/application/models/Playlist.php @@ -373,13 +373,16 @@ SQL; } if (isset($obj)) { - if (($obj instanceof CcFiles && $obj->getDbFileExists()) || $obj instanceof CcWebstream || $obj instanceof CcBlock) { - $entry = $this->plItem; - $entry["id"] = $obj->getDbId(); - $entry["pos"] = $pos; + if (($obj instanceof CcFiles && $obj->getDbFileExists() && + !$obj->getDbHidden()) || $obj instanceof CcWebstream || + $obj instanceof CcBlock) { + + $entry = $this->plItem; + $entry["id"] = $obj->getDbId(); + $entry["pos"] = $pos; $entry["cliplength"] = $obj->getDbLength(); - $entry["cueout"] = $obj->getDbLength(); - $entry["ftype"] = $objType; + $entry["cueout"] = $obj->getDbLength(); + $entry["ftype"] = $objType; } return $entry;