1
0
Fork 0
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:
Luke Pulverenti 2014-01-14 15:03:35 -05:00
parent 48d1641783
commit 32386e817b
9 changed files with 62 additions and 105 deletions

View file

@ -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) {