Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReiterer committed Oct 7, 2023
1 parent f99d5ba commit aa62ecf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions motherearthradio/index.js
Expand Up @@ -215,7 +215,9 @@ motherearthradio.prototype.clearAddPlayTrack = function (track) {
} else if (track.uri.includes("instrumental")) {
channelMix = "Instrumental";
metadataUrl = "https://motherearth.streamserver24.com/api/nowplaying/motherearth_instrumental";

} else if (track.uri.includes("jazz")) {
channelMix = "Jazz";
metadataUrl = "https://motherearth.streamserver24.com/api/nowplaying/motherearth_jazz";
}

var songs;
Expand Down Expand Up @@ -320,7 +322,7 @@ motherearthradio.prototype.explodeUri = function (uri) {
if (self.timer) {
self.timer.clear();
}
if (channel <= 2) {
if (channel <= 3) {
// FLAC option chosen
response.push({
service: self.serviceName,
Expand Down Expand Up @@ -437,8 +439,6 @@ motherearthradio.prototype.pushSongState = function (metadata) {
title: metadata.now_playing.song.title,
artist: metadata.now_playing.song.artist,
album: metadata.now_playing.song.album,
// year: metadata.now_playing.song.year,
// genre: metadata.now_playing.song.genre,
streaming: true,
disableUiControls: true,
duration: metadata.now_playing.remaining,
Expand Down
4 changes: 2 additions & 2 deletions motherearthradio/package.json
@@ -1,6 +1,6 @@
{
"name": "motherearthradio",
"version": "1.1.1",
"version": "1.2.1",
"description": "Hi Res Audio and Vinyl streaming",
"main": "index.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"buster"
],
"details": "Mother Earth Radio is a free HD music station without advertising. Best audio quality, selected tracks, audiophile only. Stream now!",
"changelog": "1.1 enabled https streaming, fixed Instrumental channel AAC erroneously playing FLAC stream 1.1.1 fixed URL error"
"changelog": "2.1 added Mother Earth Jazz channel"
},
"engines": {
"node": ">=8",
Expand Down
20 changes: 15 additions & 5 deletions motherearthradio/radio_stations.json
Expand Up @@ -31,19 +31,29 @@
"url": "https://motherearth.streamserver24.com/listen/motherearth_instrumental/motherearth.instrumental"
},
{
"title": "Mother Earth Radio (mp4)",
"title": "Mother Earth Jazz (flac)",
"uri": "webmer/3",
"url": "https://motherearth.streamserver24.com/listen/motherearth/motherearth.aac"
"url": "https://motherearth.streamserver24.com/listen/motherearth_jazz/motherearth.jazz"
},
{
"title": "Mother Earth Klassik (mp4)",
"title": "Mother Earth Radio (aac)",
"uri": "webmer/4",
"url": "https://motherearth.streamserver24.com/listen/motherearth_klassik/motherearth.klassik.aac"
"url": "https://motherearth.streamserver24.com/listen/motherearth/motherearth.aac"
},
{
"title": "Mother Earth Instrumental (mp4)",
"title": "Mother Earth Klassik (aac)",
"uri": "webmer/5",
"url": "https://motherearth.streamserver24.com/listen/motherearth_klassik/motherearth.klassik.aac"
},
{
"title": "Mother Earth Instrumental (aac)",
"uri": "webmer/6",
"url": "https://motherearth.streamserver24.com/listen/motherearth_instrumental/motherearth.instrumental.aac"
},
{
"title": "Mother Earth Jazz (aac)",
"uri": "webmer/7",
"url": "https://motherearth.streamserver24.com/listen/motherearth_jazz/motherearth.jazz.mp4"
}
]
}
Expand Down

0 comments on commit aa62ecf

Please sign in to comment.