mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
23 lines
602 B
JavaScript
23 lines
602 B
JavaScript
define([], function () {
|
|
|
|
return {
|
|
|
|
showPanel: function (items) {
|
|
|
|
require(['playlisteditor'], function (playlisteditor) {
|
|
new playlisteditor().show(items);
|
|
});
|
|
},
|
|
|
|
supportsPlaylists: function (item) {
|
|
|
|
if (item.Type == 'Program') {
|
|
return false;
|
|
}
|
|
if (item.Type == 'Timer') {
|
|
return false;
|
|
}
|
|
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
|
|
}
|
|
};
|
|
}); |