Skip to content

Commit

Permalink
fixed a bug which caused station ids in payloads being interpreted as
Browse files Browse the repository at this point in the history
string instead integer;
changed version to 0.1.4
  • Loading branch information
Tom-Hirschberger committed Aug 10, 2024
1 parent 33d51e3 commit 5964ebf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions MMM-MplayerRadio.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ Module.register('MMM-MplayerRadio', {
getNextStationId: function(curId, type=1){
const self = this
var retId = null
curId = parseInt(curId)
if (isNaN(curId)){
curId = null
}

if(curId !== null){
if(type > 0){
console.log("Searching for fitting prev station")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MMM-MplayerRadio",
"version": "0.1.3",
"version": "0.1.4",
"description": "A MagicMirror² module to play radio streams or music files on the mirror. The module can be controlled either by touch or by notifications.",
"main": "MMM-MplayerRadio.js",
"dependencies": {
Expand Down

0 comments on commit 5964ebf

Please sign in to comment.