mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
live tv playback fix
This commit is contained in:
parent
3c0f048165
commit
8f13de62d7
1 changed files with 21 additions and 5 deletions
|
@ -114,7 +114,7 @@
|
||||||
if ($.browser.chrome) {
|
if ($.browser.chrome) {
|
||||||
return '.webm';
|
return '.webm';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Firefox suddenly having trouble with our webm
|
// Firefox suddenly having trouble with our webm
|
||||||
return '.webm';
|
return '.webm';
|
||||||
}
|
}
|
||||||
|
@ -632,11 +632,27 @@
|
||||||
|
|
||||||
var userId = Dashboard.getCurrentUserId();
|
var userId = Dashboard.getCurrentUserId();
|
||||||
|
|
||||||
query.Limit = query.Limit || 100;
|
if (query.Ids && query.Ids.split(',').length == 1) {
|
||||||
query.Fields = getItemFields;
|
var deferred = DeferredBuilder.Deferred();
|
||||||
query.ExcludeLocationTypes = "Virtual";
|
|
||||||
|
|
||||||
return ApiClient.getItems(userId, query);
|
ApiClient.getItem(userId, query.Ids.split(',')).done(function (item) {
|
||||||
|
deferred.resolveWith(null, [
|
||||||
|
{
|
||||||
|
Items: [item],
|
||||||
|
TotalRecordCount: 1
|
||||||
|
}]);
|
||||||
|
});
|
||||||
|
|
||||||
|
return deferred.promise();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
query.Limit = query.Limit || 100;
|
||||||
|
query.Fields = getItemFields;
|
||||||
|
query.ExcludeLocationTypes = "Virtual";
|
||||||
|
|
||||||
|
return ApiClient.getItems(userId, query);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
self.removeFromPlaylist = function (index) {
|
self.removeFromPlaylist = function (index) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue