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