diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..2995108
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,35 @@
+## 0.6.0 – 2017-09-20
+### Added
+- Display station metadata
+ [#1523](https://github.com/owncloud/mail/pull/1523) @tahaalibra
+
+### Changed
+- Minimum server is Nextcloud 10/ownCloud 9.1
+ [#84](https://github.com/nextcloud/mail/pull/84) @ChristophWurst
+- Use session storage instead of local storage for client-side cache
+ [#1612](https://github.com/owncloud/mail/pull/1612) @ChristophWurst
+- When deleting the current message, the next one is selected immediatelly
+ [#1585](https://github.com/owncloud/mail/pull/1585) @ChristophWurst
+
+### Fixed
+- Client error while composing a new message
+ [#1609](https://github.com/owncloud/mail/pull/1609) @ChristophWurst
+- Delay app start until page has finished loading
+ [#1634](https://github.com/owncloud/mail/pull/1634) @ChristophWurst
+- Auto-redirection of HTML mail links
+ [#1603](https://github.com/owncloud/mail/pull/1603) @ChristophWurst
+- Update folder counters when reading/deleting messages
+ [#1585](https://github.com/owncloud/mail/pull/1585)
+
+### Removed
+- Removed old API
+
+### Deprecated
+- Deprecated new API
+
+### Security
+- Fixed XXE in xml upload
+
+## 0.5.0 – 2017-08-06
+### Added
+- First release
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 9814a6d..9b208e9 100755
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -3,9 +3,13 @@
radio
Radio
Listening to your favorite radio stations in Nextcloud
- 0.4
- MIT
+ 0.5.0
+ agpl
Jonas Heinrich
+ https://git.project-insanity.org/onny/nextcloud-app-radio/issues
+ https://git.project-insanity.org/onny/nextcloud-app-radio
+ multimedia
+ https://onny.project-insanity.org/files/radio-app.png
diff --git a/css/main.css b/css/main.css
index 31b6d82..418eaf4 100644
--- a/css/main.css
+++ b/css/main.css
@@ -15,6 +15,10 @@
margin-left: 10px;
}
+#station_metadata{
+ margin: 15px;
+}
+
.play{background: url('../img/play.png') no-repeat;}
.pause{background: url('../img/pause.png') no-repeat;}
diff --git a/js/main.js b/js/main.js
index dc8d498..103d86e 100644
--- a/js/main.js
+++ b/js/main.js
@@ -23,11 +23,11 @@ $(function(){
/===============*/
function action_favorite(stationid){
- var baseUrl = OC.generateUrl('/apps/radio');
- var removed = false;
+ var removed = false;
var stations = []
var baseUrl = OC.generateUrl('/apps/radio');
+
$.get(baseUrl + '/stations', function ( data ) {
for (var station in data) {
if (data[station]["stationid"] == stationid){
@@ -60,6 +60,15 @@ $(function(){
};
function action_play(stationid){
+ $.ajax({
+ method: "GET",
+ url: "https://onny.project-insanity.org/getmetadata/"+stationid,
+ dataType: 'json',
+ success: function(data){
+ var title = data['metadata'];
+ $("#station_metadata").html(title);
+ }
+ });
$.ajax({
method: "GET",
url: "https://www.radio-browser.info/webservice/v2/json/url/"+stationid,
@@ -69,7 +78,6 @@ $(function(){
$("#player").attr("src", sourceUrl);
$('#player').trigger('play');
$('#playbutton').attr("class", "pause");
- return true;
}
});
};
diff --git a/templates/main.php b/templates/main.php
index 7e3e641..f263c80 100755
--- a/templates/main.php
+++ b/templates/main.php
@@ -27,6 +27,7 @@
+ Test