diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7bcac..af67e55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.7.0 - 2020-02 +### Fixed + - Nextcloud 19-20 compatibility + []() @ () + - New Radio-Browser API endpoint + []() @ () + ## 0.6.6 - 2020-02 ### Added - French translation diff --git a/appinfo/info.xml b/appinfo/info.xml index 2500f01..3bf757d 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -4,7 +4,7 @@ radio Radio Listening to your favorite radio stations in Nextcloud - 0.6.6 + 0.7.0 agpl Jonas Heinrich @@ -15,6 +15,6 @@ https://git.project-insanity.org/onny/nextcloud-app-radio/issues https://git.project-insanity.org/onny/nextcloud-app-radio/raw/master/screenshot.png - + diff --git a/index.php b/index.php deleted file mode 100755 index cfe89f8..0000000 --- a/index.php +++ /dev/null @@ -1,32 +0,0 @@ -. -* -*/ - -// Check if we are a user -OCP\User::checkLoggedIn(); - -$navigationManager = \OC::$server->getNavigationManager(); -$navigationManager->setActiveEntry( 'radio' ); -$tmpl = new OCP\Template( 'radio', 'main', 'user' ); -$tmpl->printPage(); diff --git a/js/main.js b/js/main.js index a1b3a09..fac2171 100644 --- a/js/main.js +++ b/js/main.js @@ -2,7 +2,7 @@ var MODULE = (function (radio) { $(document).ready(function () { - var version = "0.6.5"; + var version = "0.7.0"; var current_stationid = ""; var searchTimeout = null; var scheduled = false; @@ -106,7 +106,7 @@ var MODULE = (function (radio) { }; $.each(data, function(i, station) { - if (typeof station['id'] == "undefined") { + if (typeof station['stationuuid'] == "undefined") { var entry_type = "folder"; var isstarred = false; var hashurl = window.location.hash + "/" + station['name']; @@ -114,12 +114,12 @@ var MODULE = (function (radio) { var entry_type = "station"; var isstarred = false; for (var fav_station in fav_stations) { - if (fav_stations[fav_station]["stationid"] == station['id']) { + if (fav_stations[fav_station]["stationid"] == station['stationuuid']) { isstarred = true; break; } }; - var hashurl = '#station/'+station['id']; + var hashurl = '#station/'+station['stationuuid']; } radio.render_entry(entry_type, isstarred, hashurl, station['favicon'], station['name']); }); @@ -151,7 +151,7 @@ var MODULE = (function (radio) { var station_array_new = []; station_ids.forEach(function (station_id, idx) { - var url = "https://www.radio-browser.info/webservice/json/stations/byid/"+station_ids[idx]; + var url = "https://de1.api.radio-browser.info/json/stations/byid/"+station_ids[idx]; $.getJSON( url , {"User-Agent": "Nextcloud Radio/"+radio.version }, function( data ) { if (data.length === 0) { @@ -182,7 +182,7 @@ var MODULE = (function (radio) { radio.radio_query = function(hashurl){ var offset = $('tbody > tr').length; var query = ""; - var api_baseurl = "https://www.radio-browser.info/webservice/json/"; + var api_baseurl = "https://de1.api.radio-browser.info/json/"; switch (hashurl) { case "#top": var query_url = "stations/topclick"; diff --git a/js/player.js b/js/player.js index 4fc10ed..b15c8d4 100644 --- a/js/player.js +++ b/js/player.js @@ -56,7 +56,7 @@ var MODULE = (function (radio) { }; $.ajax({ method: "GET", - url: "https://www.radio-browser.info/webservice/v2/json/url/"+stationid, + url: "https://de1.api.radio-browser.info/json/url/"+stationid, dataType: 'json', success: function(data){ var streamurl = data['url'];