diff --git a/README.md b/README.md index 107bd5a..abc6ab0 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ How to build Changelog --------- +### 1.1.3 +* (Vegetto) bugfix - media title was not kept to url when streamTitle not present ### 1.1.2 * (Vegetto) Update npm dependencies in package.json to latest versions diff --git a/io-package.json b/io-package.json index c9e0918..390bcba 100644 --- a/io-package.json +++ b/io-package.json @@ -2,7 +2,7 @@ "common": { "name": "chromecast", "title": "Chromecast Adapter", - "version": "1.1.2", + "version": "1.1.3", "license": "MIT", "authors": ["Vegetto "], "desc": { diff --git a/lib/mediaInformation.js b/lib/mediaInformation.js index d9190be..da44349 100755 --- a/lib/mediaInformation.js +++ b/lib/mediaInformation.js @@ -188,11 +188,14 @@ module.exports = function (_adapter) { StreamUrl: '&artist=BILLY%20IDOL&title=WHITE%20WEDDING&album=&duration=&songtype=S&overlay=&buycd=&website=&picture' } */ var parsed = icy.parse(metadata); - adapter.log.debug(JSON.stringify(parsed)); + adapter.log.debug("ICY parsed metadata: " + JSON.stringify(parsed)); - //Get title - that._media.metadata.title = parsed.StreamTitle; + //Get title (if any) + if (parsed.StreamTitle) + that._media.metadata.title = parsed.StreamTitle; + adapter.log.debug("Updated media data: " + JSON.stringify(metadata)); + //If we got media info then call callback already if (that._timeoutHandler) { clearTimeout(that._timeoutHandler); diff --git a/package.json b/package.json index e863b13..6300eff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.chromecast", - "version": "1.1.2", + "version": "1.1.3", "description": "ioBroker chromecast Adapter", "author": { "name": "Vegetto", diff --git a/widgets/chromecast.html b/widgets/chromecast.html index 0002fd3..76f2c0c 100644 --- a/widgets/chromecast.html +++ b/widgets/chromecast.html @@ -1,7 +1,7 @@ diff --git a/widgets/chromecast/js/chromecast.js b/widgets/chromecast/js/chromecast.js index a7fd2af..a652b7b 100644 --- a/widgets/chromecast/js/chromecast.js +++ b/widgets/chromecast/js/chromecast.js @@ -1,7 +1,7 @@ /* ioBroker.chromecast Widget-Set - version: "1.1.2" + version: "1.1.3" Copyright 10.2015-2016 Vegetto @@ -142,7 +142,7 @@ function registerForDeviceUpdates($widget, ioBrokerState){ // this code can be placed directly in chromecast.html vis.binds.chromecast = { - version: "1.1.2", + version: "1.1.3", showVersion: function () { if (vis.binds.chromecast.version) { console.log('Version chromecast: ' + vis.binds.chromecast.version);