diff --git a/app/common/model-service.js b/app/common/model-service.js index 848bb1f..b1feaa1 100644 --- a/app/common/model-service.js +++ b/app/common/model-service.js @@ -111,6 +111,9 @@ angular.module('jamstash.model', ['jamstash.utils']) if (suffix == 'ogg') { suffix = 'oga'; } var salt = Math.floor(Math.random() * 100000); url = globals.BaseURL() + '/stream.view?' + globals.BaseParams() + '&id=' + song.id + '&salt=' + salt; + if (globals.settings.EstimateLength){ + url += "&estimateContentLength=true"; + } return new model.Song(song.id, song.parent, track, title, artist, song.artistId, song.album, song.albumId, coverartthumb, coverartfull, song.duration, song.userRating, starred, suffix, specs, url, 0, description); }; @@ -147,6 +150,9 @@ angular.module('jamstash.model', ['jamstash.utils']) if (suffix == 'ogg') { suffix = 'oga'; } var salt = Math.floor(Math.random() * 100000); url = globals.BaseURL() + '/stream.view?' + globals.BaseParams() + '&id=' + song.streamId + '&salt=' + salt; + if (globals.settings.EstimateLength){ + url += "&estimateContentLength=true"; + } return new model.Song(song.streamId, song.parent, track, title, artist, song.artistId, album, song.albumId, coverartthumb, coverartfull, song.duration, song.userRating, starred, suffix, specs, url, 0, description); }; diff --git a/app/settings/settings-service.js b/app/settings/settings-service.js index 72c1a46..3c07e10 100644 --- a/app/settings/settings-service.js +++ b/app/settings/settings-service.js @@ -58,7 +58,9 @@ angular.module('jamstash.settings.service', []) AutoPlay: false, LoopQueue: false, Repeat: false, + // Advanced Debug: false, + EstimateLength: true, ShowQueue: false }; this.SavedCollections = []; diff --git a/app/settings/settings.html b/app/settings/settings.html index 4ab6768..4b674fa 100644 --- a/app/settings/settings.html +++ b/app/settings/settings.html @@ -46,10 +46,10 @@
- -
+ +
-
+
@@ -81,6 +81,9 @@
+
+ +