OCP\App::addNavigationEntry(array('id' => 'media_index', 'order' => 2, 'href' => OCP\Util::linkTo('media', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/music.svg'), 'name' => $l->t('Music')));
OC_Search::registerProvider('OC_MediaSearchProvider');
-OCP\CONFIG::setAppValue('core', 'remote_ampache', '/apps/media/remote.php');
\ No newline at end of file
+OCP\CONFIG::setAppValue('core', 'remote_ampache', '/apps/media/remote.php');
+OCP\CONFIG::setAppValue('core', 'remote_tomahawk', '/apps/media/tomahawk.php');
*/
$_POST=$_GET; //debug
-require_once('../inc.php');
OCP\JSON::checkAppEnabled('media');
require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
$songs=OC_MEDIA_COLLECTION::getSongs($artist,$album,$song);
-$baseUrl=OC_Util::getServerURL().OCP\Util::linkTo('media','tomahawk.php');
+$baseUrl=$baseuri;
$results=array();
foreach($songs as $song) {
);
}
OCP\JSON::encodedPrint($results);
-?>