diff --git a/airtime_mvc/application/models/Playlist.php b/airtime_mvc/application/models/Playlist.php index e01484d2f..23150d266 100644 --- a/airtime_mvc/application/models/Playlist.php +++ b/airtime_mvc/application/models/Playlist.php @@ -154,8 +154,6 @@ class Application_Model_Playlist implements Application_Model_LibraryEditable */ public function getContents($filterFiles=false) { - Logging::info("Getting contents for playlist {$this->id}"); - $sql = <<findPK($p_afterItem); $index = $afterItem->getDbPosition(); - Logging::info("index is {$index}"); + $pos = ($addType == 'after') ? $index + 1 : $index; $contentsToUpdate = CcPlaylistcontentsQuery::create() @@ -500,9 +503,6 @@ SQL; } - Logging::info("Adding to playlist"); - Logging::info("at position {$pos}"); - foreach ($p_items as $ac) { $res = $this->insertPlaylistElement($this->buildEntry($ac, $pos)); @@ -512,8 +512,6 @@ SQL; $db_file->setDbIsPlaylist(true)->save($this->con); $pos = $pos + 1; - Logging::info("Adding $ac[1] $ac[0]"); - } //reset the positions of the remaining items. @@ -745,7 +743,6 @@ SQL; if (!is_null($offset)) { $row->setDbTrackOffset($offset); - Logging::info("Setting offset {$offset} on item {$id}"); $row->save($this->con); } }