2 require_once 'Services/MediaTomb.php';
4 function handleRequestMediatomb($fullPath, $prefix)
9 $smt = new Services_MediaTomb($user, $pass, $host, $port);
11 $path = substr($fullPath, strlen($prefix));
12 $container = $smt->getContainerByPath($path);
14 addPreviousItem($listItems, $fullPath);
16 foreach ($container->getContainers() as $subContainer) {
17 $listItems[] = getDirItem(
19 $fullPath . $subContainer->title . '/'
23 foreach ($container->getItemIterator(false) as $item) {
24 $listItems[] = getEpisodeItem(
32 sendListItems($listItems);