diff --git a/dashboard-ui/bower_components/emby-apiclient/.bower.json b/dashboard-ui/bower_components/emby-apiclient/.bower.json index 14291cd30..39753713a 100644 --- a/dashboard-ui/bower_components/emby-apiclient/.bower.json +++ b/dashboard-ui/bower_components/emby-apiclient/.bower.json @@ -16,12 +16,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.1.101", - "_release": "1.1.101", + "version": "1.1.104", + "_release": "1.1.104", "_resolution": { "type": "version", - "tag": "1.1.101", - "commit": "ee067b87820c7fc8b43499f48b3035fd0e594032" + "tag": "1.1.104", + "commit": "61e924b71080aa117e48dc26323489895ffd62d1" }, "_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git", "_target": "^1.1.51", diff --git a/dashboard-ui/bower_components/emby-apiclient/apiclient.js b/dashboard-ui/bower_components/emby-apiclient/apiclient.js index d47b517c1..b2d5df08d 100644 --- a/dashboard-ui/bower_components/emby-apiclient/apiclient.js +++ b/dashboard-ui/bower_components/emby-apiclient/apiclient.js @@ -22,6 +22,27 @@ var self = this; var webSocket; var serverInfo = {}; + var lastDetectedBitrate; + var lastDetectedBitrateTime; + + var detectTimeout; + function redetectBitrate() { + stopBitrateDetection(); + + if (self.accessToken() && self.enableAutomaticBitrateDetection !== false) { + setTimeout(redetectBitrateInternal, 6000); + } + } + + function redetectBitrateInternal() { + self.detectBitrate(); + } + + function stopBitrateDetection() { + if (detectTimeout) { + clearTimeout(detectTimeout); + } + } /** * Gets the server address. @@ -38,9 +59,14 @@ serverAddress = val; + lastDetectedBitrate = 0; + lastDetectedBitrateTime = 0; + if (changed) { events.trigger(this, 'serveraddresschanged'); } + + redetectBitrate(); } return serverAddress; @@ -128,6 +154,7 @@ serverInfo.AccessToken = accessKey; serverInfo.UserId = userId; + redetectBitrate(); }; self.encodeName = function (name) { @@ -672,10 +699,20 @@ function normalizeReturnBitrate(bitrate) { if (!bitrate) { + + if (lastDetectedBitrate) { + return lastDetectedBitrate; + } + return Promise.reject(); } - return Math.round(bitrate * 0.8); + var result = Math.round(bitrate * 0.8); + + lastDetectedBitrate = result; + lastDetectedBitrateTime = new Date().getTime(); + + return result; } function detectBitrateInternal(tests, index, currentBitrate) { @@ -685,7 +722,7 @@ return normalizeReturnBitrate(currentBitrate); } - var test = tests[0]; + var test = tests[index]; return self.getDownloadSpeed(test.bytes).then(function (bitrate) { @@ -703,6 +740,10 @@ self.detectBitrate = function () { + if (lastDetectedBitrate && (new Date().getTime() - (lastDetectedBitrateTime || 0)) <= 3600000) { + return Promise.resolve(lastDetectedBitrate); + } + return detectBitrateInternal([ { bytes: 100000, @@ -798,6 +839,7 @@ self.logout = function () { + stopBitrateDetection(); self.closeWebSocket(); var done = function () { @@ -2591,6 +2633,8 @@ self.onAuthenticated(self, result); } + redetectBitrate(); + resolve(result); }, reject); @@ -3341,6 +3385,8 @@ throw new Error("null options"); } + stopBitrateDetection(); + var url = self.getUrl("Sessions/Playing"); return self.ajax({ @@ -3469,6 +3515,8 @@ throw new Error("null options"); } + redetectBitrate(); + var url = self.getUrl("Sessions/Playing/Stopped"); return self.ajax({ diff --git a/dashboard-ui/bower_components/emby-apiclient/connectionmanager.js b/dashboard-ui/bower_components/emby-apiclient/connectionmanager.js index 359b2477e..66581b7e0 100644 --- a/dashboard-ui/bower_components/emby-apiclient/connectionmanager.js +++ b/dashboard-ui/bower_components/emby-apiclient/connectionmanager.js @@ -447,6 +447,7 @@ if (options.reportCapabilities !== false) { apiClient.reportCapabilities(capabilities); } + apiClient.enableAutomaticBitrateDetection = options.enableAutomaticBitrateDetection; if (options.enableWebSocket !== false) { console.log('calling apiClient.ensureWebSocket'); diff --git a/dashboard-ui/bower_components/emby-apiclient/sync/serversync.js b/dashboard-ui/bower_components/emby-apiclient/sync/serversync.js index 7c5e81b67..55930fb6b 100644 --- a/dashboard-ui/bower_components/emby-apiclient/sync/serversync.js +++ b/dashboard-ui/bower_components/emby-apiclient/sync/serversync.js @@ -16,7 +16,8 @@ var connectionOptions = { updateDateLastAccessed: false, enableWebSocket: false, - reportCapabilities: false + reportCapabilities: false, + enableAutomaticBitrateDetection: false }; return connectionManager.connectToServer(server, connectionOptions).then(function (result) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 4cb964a89..0770229f2 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.380", - "_release": "1.4.380", + "version": "1.4.381", + "_release": "1.4.381", "_resolution": { "type": "version", - "tag": "1.4.380", - "commit": "ef70fed326cf70ed366390f05df489943b155c13" + "tag": "1.4.381", + "commit": "2a3f7a75f989eb2c1086deac144f40f15baffefc" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.1", diff --git a/dashboard-ui/bower_components/emby-webcomponents/browserdeviceprofile.js b/dashboard-ui/bower_components/emby-webcomponents/browserdeviceprofile.js index 5d9f839c1..7ebb3cca9 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/browserdeviceprofile.js +++ b/dashboard-ui/bower_components/emby-webcomponents/browserdeviceprofile.js @@ -272,7 +272,7 @@ define(['browser'], function (browser) { // This works in edge desktop, but not mobile // TODO: Retest this on mobile - if (!browser.edge || !browser.touch) { + if (!browser.edge || !browser.touch || browser.edgeUwp) { hlsVideoAudioCodecs.push('ac3'); } } diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ar.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ar.json index 4af86d36d..e2b3d9f5e 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ar.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ar.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/bg-BG.json b/dashboard-ui/bower_components/emby-webcomponents/strings/bg-BG.json index 25fa3fd6c..c51492467 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/bg-BG.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/bg-BG.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ca.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ca.json index 95a992a0d..887bf6006 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ca.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ca.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/cs.json b/dashboard-ui/bower_components/emby-webcomponents/strings/cs.json index d86d76af9..4a629b1bc 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/cs.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/cs.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "P\u0159ehr\u00e1t moje M\u00e9dia", "HeaderDiscoverEmbyPremiere": "Objevte v\u00fdhody Emby Premiere", "OneChannel": "Jeden kan\u00e1l", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/da.json b/dashboard-ui/bower_components/emby-webcomponents/strings/da.json index 357c7d651..008c69dda 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/da.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/da.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/de.json b/dashboard-ui/bower_components/emby-webcomponents/strings/de.json index c338615d8..1d8366a33 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/de.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/de.json @@ -182,7 +182,7 @@ "LabelAirsBeforeSeason": "Ausstrahlungen vor Staffel:", "LabelAirsAfterSeason": "Ausstrahlungen nach Staffel:", "LabelAirsBeforeEpisode": "Ausstrahlungen vor Episode:", - "HeaderExternalIds": "Externe Id's:", + "HeaderExternalIds": "Externe IDs:", "HeaderDisplaySettings": "Anzeige Einstellungen", "LabelTreatImageAs": "Bild behandeln, wie:", "LabelDisplayOrder": "Anzeigereihenfolge:", @@ -343,8 +343,8 @@ "ButtonRestorePreviousPurchase": "Kauf wiederherstellen", "ButtonUnlockWithPurchase": "Freischalten durch Kauf", "ButtonUnlockPrice": "{0} freischalten", - "EmbyPremiereMonthlyWithPrice": "Emby Premiere Monthly {0}", - "HeaderAlreadyPaid": "Already Paid?", + "EmbyPremiereMonthlyWithPrice": "Emby Premiere Monatlich {0}", + "HeaderAlreadyPaid": "Schon bezahlt?", "ButtonPlayOneMinute": "Eine Minute wiedergeben", "PlaceFavoriteChannelsAtBeginning": "Platziere favorisierte Kan\u00e4le am Anfang", "HeaderUnlockFeature": "Feature freischalten", @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Spiele meine Medien ab", "HeaderDiscoverEmbyPremiere": "Entdecke Emby Premiere", "OneChannel": "Ein Kanal", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Download entfernen?", + "AddedOnValue": "Hinzugef\u00fcgt {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/el.json b/dashboard-ui/bower_components/emby-webcomponents/strings/el.json index 8b70951c1..2ef3433d6 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/el.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/el.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/en-GB.json b/dashboard-ui/bower_components/emby-webcomponents/strings/en-GB.json index c8eb5871e..4206d9d49 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/en-GB.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/en-GB.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/es-AR.json b/dashboard-ui/bower_components/emby-webcomponents/strings/es-AR.json index 73277dc95..e84e59f9e 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/es-AR.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/es-AR.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/es-MX.json b/dashboard-ui/bower_components/emby-webcomponents/strings/es-MX.json index 18167533d..a4455d9e8 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/es-MX.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/es-MX.json @@ -182,7 +182,7 @@ "LabelAirsBeforeSeason": "Transmisi\u00f3n antes de la temporada:", "LabelAirsAfterSeason": "Transmisi\u00f3n despu\u00e9s de la temporada:", "LabelAirsBeforeEpisode": "Transmisi\u00f3n antes del episodio:", - "HeaderExternalIds": "Id\u00b4s Externos:", + "HeaderExternalIds": "IDs Externos:", "HeaderDisplaySettings": "Configuraci\u00f3n de Pantalla", "LabelTreatImageAs": "Tratar imagen como:", "LabelDisplayOrder": "Orden para mostrar:", @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Reproducir mis Medios", "HeaderDiscoverEmbyPremiere": "Descubra Emby Premier", "OneChannel": "Un canal", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Agregado el {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/es.json b/dashboard-ui/bower_components/emby-webcomponents/strings/es.json index 487ce0d3e..6297311fa 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/es.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/es.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/fi.json b/dashboard-ui/bower_components/emby-webcomponents/strings/fi.json index f0b0de13e..80e4495b0 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/fi.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/fi.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/fr-CA.json b/dashboard-ui/bower_components/emby-webcomponents/strings/fr-CA.json index 8e4c4d26b..d7ea85514 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/fr-CA.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/fr-CA.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/fr.json b/dashboard-ui/bower_components/emby-webcomponents/strings/fr.json index 3445b153b..e10bf8ed3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/fr.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/fr.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Lire mon contenu", "HeaderDiscoverEmbyPremiere": "D\u00e9couvrez Emby Premiere", "OneChannel": "Une cha\u00eene", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/gsw.json b/dashboard-ui/bower_components/emby-webcomponents/strings/gsw.json index e3a8b85e3..489aa0dd5 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/gsw.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/gsw.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/he.json b/dashboard-ui/bower_components/emby-webcomponents/strings/he.json index 889a62e0a..dc3009f9f 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/he.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/he.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/hr.json b/dashboard-ui/bower_components/emby-webcomponents/strings/hr.json index 41a52e6cc..931fa439b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/hr.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/hr.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Reproduciraj moje medije", "HeaderDiscoverEmbyPremiere": "Otkrijte Emby Premijeru", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/hu.json b/dashboard-ui/bower_components/emby-webcomponents/strings/hu.json index 7f5fce8b3..2956c5d4f 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/hu.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/hu.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/id.json b/dashboard-ui/bower_components/emby-webcomponents/strings/id.json index 2b3b51d52..0a95decd0 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/id.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/id.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/it.json b/dashboard-ui/bower_components/emby-webcomponents/strings/it.json index d1ce13d8f..1c389f372 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/it.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/it.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Riproduci i miei Media", "HeaderDiscoverEmbyPremiere": "Scopri Emby Premiere", "OneChannel": "Un canale", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/kk.json b/dashboard-ui/bower_components/emby-webcomponents/strings/kk.json index 0f67c1164..9002382bf 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/kk.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/kk.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "\u041c\u0435\u043d\u0456\u04a3 \u0442\u0430\u0441\u044b\u0493\u044b\u0448\u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440\u0456\u043c\u0434\u0456 \u043e\u0439\u043d\u0430\u0442\u0443", "HeaderDiscoverEmbyPremiere": "Emby Premiere \u0430\u0448\u044b\u04a3\u044b\u0437", "OneChannel": "\u0411\u0456\u0440 \u0430\u0440\u043d\u0430\u0434\u0430\u043d", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "\u04ae\u0441\u0442\u0435\u043b\u0433\u0435\u043d\u0456 {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ko.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ko.json index 68c12fbb7..790a1ab5c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ko.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ko.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ms.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ms.json index 8e4c4d26b..d7ea85514 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ms.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ms.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/nb.json b/dashboard-ui/bower_components/emby-webcomponents/strings/nb.json index 0de0fde9c..787bee30b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/nb.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/nb.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/nl.json b/dashboard-ui/bower_components/emby-webcomponents/strings/nl.json index 8bd4d903d..d2bdf7934 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/nl.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/nl.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/pl.json b/dashboard-ui/bower_components/emby-webcomponents/strings/pl.json index b183ad4e9..451850b9c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/pl.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/pl.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/pt-BR.json b/dashboard-ui/bower_components/emby-webcomponents/strings/pt-BR.json index e1e90df9d..f820315c2 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/pt-BR.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/pt-BR.json @@ -182,7 +182,7 @@ "LabelAirsBeforeSeason": "Exibido antes da temporada:", "LabelAirsAfterSeason": "Exibido depois da temporada:", "LabelAirsBeforeEpisode": "Exibido antes do epis\u00f3dio:", - "HeaderExternalIds": "Id`s Externos:", + "HeaderExternalIds": "Ids Externos:", "HeaderDisplaySettings": "Ajustes de Exibi\u00e7\u00e3o", "LabelTreatImageAs": "Tratar imagem como:", "LabelDisplayOrder": "Ordem de exibi\u00e7\u00e3o:", @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Reproduzir minha M\u00eddia", "HeaderDiscoverEmbyPremiere": "Descobrir o Emby Premiere", "OneChannel": "Um canal", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Adicionado em {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/pt-PT.json b/dashboard-ui/bower_components/emby-webcomponents/strings/pt-PT.json index fe0f15418..6b45d945f 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/pt-PT.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/pt-PT.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ro.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ro.json index 03a4d46ba..611217499 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ro.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ro.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/ru.json b/dashboard-ui/bower_components/emby-webcomponents/strings/ru.json index 155c806c1..197181cb5 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/ru.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/ru.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043c\u043e\u0438 \u043c\u0435\u0434\u0438\u0430\u0434\u0430\u043d\u043d\u044b\u0435", "HeaderDiscoverEmbyPremiere": "\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Emby Premiere", "OneChannel": "\u041e\u0434\u0438\u043d \u043a\u0430\u043d\u0430\u043b", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/sk.json b/dashboard-ui/bower_components/emby-webcomponents/strings/sk.json index 8e4c4d26b..d7ea85514 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/sk.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/sk.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/sl-SI.json b/dashboard-ui/bower_components/emby-webcomponents/strings/sl-SI.json index fb3d188eb..d546b23a4 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/sl-SI.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/sl-SI.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/sv.json b/dashboard-ui/bower_components/emby-webcomponents/strings/sv.json index 53f069072..d779c5f4c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/sv.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/sv.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/tr.json b/dashboard-ui/bower_components/emby-webcomponents/strings/tr.json index cea0681d1..e2e9c13cc 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/tr.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/tr.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/uk.json b/dashboard-ui/bower_components/emby-webcomponents/strings/uk.json index 1022d1f19..4deed3e38 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/uk.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/uk.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/vi.json b/dashboard-ui/bower_components/emby-webcomponents/strings/vi.json index 7fdd2ad67..63ce6b116 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/vi.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/vi.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-CN.json b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-CN.json index 24d5f8e6d..f752f167d 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-CN.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-CN.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-HK.json b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-HK.json index 7149edcdb..26114844d 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-HK.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-HK.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-TW.json b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-TW.json index 18f863786..9e179b98f 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/strings/zh-TW.json +++ b/dashboard-ui/bower_components/emby-webcomponents/strings/zh-TW.json @@ -353,5 +353,6 @@ "HeaderPlayMyMedia": "Play my Media", "HeaderDiscoverEmbyPremiere": "Discover Emby Premiere", "OneChannel": "One channel", - "AddedOnValue": "Added on {0}" + "ConfirmRemoveDownload": "Remove download?", + "AddedOnValue": "Added {0}" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/sync/synctoggle.js b/dashboard-ui/bower_components/emby-webcomponents/sync/synctoggle.js index 37862ea41..3f209996b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/sync/synctoggle.js +++ b/dashboard-ui/bower_components/emby-webcomponents/sync/synctoggle.js @@ -10,6 +10,8 @@ var self = this; + self.options = options; + function resetSyncStatus() { updateSyncStatus(options.container, options.item); } diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index dde1849b3..456147336 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -670,8 +670,6 @@ define(['appSettings', 'userSettings', 'datetime', 'browser'], function (appSett }); }; - self.lastBitrateDetections = {}; - self.playInternal = function (item, startPosition, callback) { if (item == null) { @@ -699,15 +697,12 @@ define(['appSettings', 'userSettings', 'datetime', 'browser'], function (appSett }); }; - var bitrateDetectionKey = ApiClient.serverAddress(); - - if (item.MediaType == 'Video' && appSettings.enableAutomaticBitrateDetection() && (new Date().getTime() - (self.lastBitrateDetections[bitrateDetectionKey] || 0)) > 300000) { + if (item.MediaType == 'Video' && appSettings.enableAutomaticBitrateDetection()) { Dashboard.showLoadingMsg(); ApiClient.detectBitrate().then(function (bitrate) { console.log('Max bitrate auto detected to ' + bitrate); - self.lastBitrateDetections[bitrateDetectionKey] = new Date().getTime(); appSettings.maxStreamingBitrate(bitrate); onBitrateDetected();