]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add remote for media/tomahawk.php
authorBart Visscher <bartv@thisnet.nl>
Tue, 8 May 2012 16:40:27 +0000 (18:40 +0200)
committerBart Visscher <bartv@thisnet.nl>
Tue, 8 May 2012 16:40:40 +0000 (18:40 +0200)
apps/media/appinfo/app.php
apps/media/tomahawk.php

index 0ab6543e070c85acae176931dd2fd961b6eeccb0..332b73546ec4cb5675326ff3709302302c4de69b 100755 (executable)
@@ -32,4 +32,5 @@ OCP\App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' ));
 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');
index 700a75bf41e87fd32f4d131b024943a99489324f..c74d168c42db2fdb993416e22dc102003e58fce3 100755 (executable)
@@ -22,7 +22,6 @@
 */
 
 $_POST=$_GET; //debug
-require_once('../inc.php');
 
 OCP\JSON::checkAppEnabled('media');
 require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
@@ -58,7 +57,7 @@ $album=OC_MEDIA_COLLECTION::getAlbumId($album,$artist);
 
 $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) {
@@ -77,4 +76,3 @@ foreach($songs as $song) {
        );
 }
 OCP\JSON::encodedPrint($results);
-?>