update to current services_mediatomb api master
authorChristian Weiske <cweiske@cweiske.de>
Sun, 1 Aug 2010 13:27:31 +0000 (15:27 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 1 Aug 2010 13:27:31 +0000 (15:27 +0200)
copy-radio-bouqets.php
sync-radio-bouqets.php

index 6d7bf3b..a87995a 100644 (file)
@@ -26,7 +26,7 @@ $strRadiodir = $GLOBALS['enigtombConfig']['mediatomb']['radiodir'];
 
 $radiodir = $mt->getContainerByPath($strRadiodir);
 if ($radiodir !== null) {
-    $mt->delete($radiodir);
+    $mt->deleteItem($radiodir);
 }
 
 foreach ($arBouqets as $strBouqetName => $arStations) {
index 6f66691..b9f5def 100644 (file)
@@ -141,7 +141,7 @@ foreach ($arValidContainers as $nContainerId => $container) {
             //delete it in mediatomb
             echo "    deleting\n";
             if ($bReally) {
-                $arStationItemsByUri[$strUri]->delete();
+                $arStationItemsByUri[$strUri]->deleteItem();
             }
         } else if (!isset($arStationItemsByUri[$strUri])) {
             //station exists on dreambox only