From 80b537e30b8053b2cd85fff504f1192cbc36f9d4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 1 Jan 2017 17:55:57 -0500 Subject: [PATCH] update components --- .../bower_components/emby-webcomponents/.bower.json | 8 ++++---- .../emby-webcomponents/playback/playbackmanager.js | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index a0a27568b3..29d8f16f40 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -14,12 +14,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.4.417", - "_release": "1.4.417", + "version": "1.4.419", + "_release": "1.4.419", "_resolution": { "type": "version", - "tag": "1.4.417", - "commit": "d03cd494c958c2fcbc45447fab8b6ab58c925cba" + "tag": "1.4.419", + "commit": "e65e31848b76b3cab4193f201517212050de8c53" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.1", diff --git a/dashboard-ui/bower_components/emby-webcomponents/playback/playbackmanager.js b/dashboard-ui/bower_components/emby-webcomponents/playback/playbackmanager.js index 893c339c4f..0db58da59b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/playback/playbackmanager.js +++ b/dashboard-ui/bower_components/emby-webcomponents/playback/playbackmanager.js @@ -748,7 +748,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g self.seek = function (ticks, player) { player = player || currentPlayer; - if (currentPlayer && !enableLocalPlaylistManagement(player)) { + if (player && !enableLocalPlaylistManagement(player)) { return player.seek(ticks); } @@ -1034,17 +1034,17 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g self.instantMix = function (item, player) { player = player || currentPlayer; - if (!enableLocalPlaylistManagement(player)) { + if (player && !enableLocalPlaylistManagement(player)) { return player.instantMix(item); } - var apiClient = connectionManager.getApiClient(serverId); + var apiClient = connectionManager.getApiClient(item.ServerId); var options = {}; options.UserId = apiClient.getCurrentUserId(); options.Fields = 'MediaSources'; - apiClient.getInstantMixFromItem(id, item).then(function (result) { + apiClient.getInstantMixFromItem(item.Id, options).then(function (result) { self.play({ items: result.Items }); @@ -1054,7 +1054,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g self.shuffle = function (shuffleItem, player) { player = player || currentPlayer; - if (!enableLocalPlaylistManagement(player)) { + if (player && !enableLocalPlaylistManagement(player)) { return player.shuffle(shuffleItem); } @@ -1177,7 +1177,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g self.currentTime = function (player) { player = player || currentPlayer; - if (currentPlayer && !enableLocalPlaylistManagement(player)) { + if (player && !enableLocalPlaylistManagement(player)) { return player.currentTime(); }