mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added new item by name filters
This commit is contained in:
parent
48d1641783
commit
32386e817b
9 changed files with 62 additions and 105 deletions
|
@ -363,7 +363,7 @@
|
|||
|
||||
if (!$(this).hasClass('selectedMediaFlyoutOption')) {
|
||||
var channelId = this.getAttribute('data-channelid');
|
||||
self.playById(channelId, 'Channel');
|
||||
self.playById(channelId);
|
||||
}
|
||||
|
||||
hideFlyout($('#channelsFlyout'));
|
||||
|
@ -1229,29 +1229,7 @@
|
|||
return ApiClient.getItems(userId, query);
|
||||
};
|
||||
|
||||
self.playById = function (id, itemType, startPositionTicks) {
|
||||
|
||||
if (itemType == "Recording") {
|
||||
|
||||
ApiClient.getLiveTvRecording(id, Dashboard.getCurrentUserId()).done(function (item) {
|
||||
|
||||
self.play([item], startPositionTicks);
|
||||
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (itemType == "Channel") {
|
||||
|
||||
ApiClient.getLiveTvChannel(id, Dashboard.getCurrentUserId()).done(function (item) {
|
||||
|
||||
self.play([item], startPositionTicks);
|
||||
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
self.playById = function (id, startPositionTicks) {
|
||||
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue