Skip to content

Commit

Permalink
Fixed getting name of playing song
Browse files Browse the repository at this point in the history
Rádio Slovensko station only
  • Loading branch information
tomasko126 committed Oct 23, 2014
1 parent e6d73f6 commit 7f48e8a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="slovenskeradia" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets">
<widget id="com.blackberry.slovenskeradia" version="0.2.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets">
<name>Online SK rádiá</name>
<author>Tomáš Taro</author>
<description>Streamuj slovenské rádiá online</description>
Expand Down
Binary file modified platforms/blackberry10/build/device/bb10app.bar
Binary file not shown.
Binary file modified platforms/blackberry10/build/simulator/bb10app.bar
Binary file not shown.
2 changes: 1 addition & 1 deletion platforms/blackberry10/www/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="slovenskeradia" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets">
<widget id="com.blackberry.slovenskeradia" version="0.2.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:rim="http://www.blackberry.com/ns/widgets">
<name>Online SK rádiá</name>
<author>Tomáš Taro</author>
<description>Streamuj slovenské rádiá online</description>
Expand Down
4 changes: 2 additions & 2 deletions platforms/blackberry10/www/scripts/html5audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ var get_song = function(station) {
if (station !== "sro")
$("#playingsong").html(this.responseText).text();
else {
var parser = new DOMParser();
var html = parser.parseFromString(this.responseText, "text/html");
var html = document.implementation.createHTMLDocument('');
html.documentElement.innerHTML = this.responseText;
html.querySelector(".ro-slovensko > .playRadio > .overflow > strong").remove();
$("#playingsong").text(function() {
var text = html.querySelector(".ro-slovensko > .playRadio > .overflow").textContent;
Expand Down
4 changes: 2 additions & 2 deletions www/scripts/html5audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ var get_song = function(station) {
if (station !== "sro")
$("#playingsong").html(this.responseText).text();
else {
var parser = new DOMParser();
var html = parser.parseFromString(this.responseText, "text/html");
var html = document.implementation.createHTMLDocument('');
html.documentElement.innerHTML = this.responseText;
html.querySelector(".ro-slovensko > .playRadio > .overflow > strong").remove();
$("#playingsong").text(function() {
var text = html.querySelector(".ro-slovensko > .playRadio > .overflow").textContent;
Expand Down

0 comments on commit 7f48e8a

Please sign in to comment.