diff --git a/README.md b/README.md index 58f293a..82271ec 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ This experimental app uses the radio-browser.info api and offers radio stations ## Maintainers * [Jonas Heinrich](https://github.com/onny) +## Installation + + * **Using git:** In your `nextcloud/apps/` directory, run `git clone https://git.project-insanity.org/onny/nextcloud-app-radio.git radio`. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app. + * **Using the zip archive:** Download the latest [tar.bz2 archive](https://git.project-insanity.org/onny/nextcloud-app-radio/repository/archive.tar.bz2?ref=master), extract the directory inside your `nextcloud/apps/` directory, and rename it to `radio`. For stable releases, you can also download one of the [releases](https://git.project-insanity.org/onny/nextcloud-app-radio/) tar.bz2 archives. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app. + * **Using package manager:** For ArchLinux, there is an [AUR package](https://aur.archlinux.org/packages/nextcloud-app-radio-git/) available. + ## Testing Can be easily tested using Docker: ``` diff --git a/appinfo/info.xml b/appinfo/info.xml index 59bcfea..28d00ce 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -2,7 +2,7 @@ radio Radio - Listening to your favorite radio stations in NextCloud + Listening to your favorite radio stations in Nextcloud 0.2 MIT Jonas Heinrich diff --git a/js/main.js b/js/main.js index c3b395e..2c9ab84 100644 --- a/js/main.js +++ b/js/main.js @@ -1,7 +1,7 @@ $(window).on('load', function(){ $('body').on('click', 'tr', function() { - var sourceUrl = $(this).attr('src'); + var sourceUrl = $(this).attr('data-src'); $("#player").attr("src", sourceUrl); $('#player').trigger('play'); }); @@ -9,7 +9,7 @@ $(window).on('load', function(){ function show_result(data){ $("tbody > tr").remove(); $.each(data, function(i, station) { - $('tbody').append('\ + $('tbody').append('\ \ \ \