EmbyCrackedClient/web/modules/tabbedview/artiststab.js
2025-06-25 11:46:04 +08:00

1 line
No EOL
1.2 KiB
JavaScript

import ItemsTab from"./itemstab.js";function ArtistsTab(view,params,options){ItemsTab.apply(this,arguments)}Object.assign(ArtistsTab.prototype,ItemsTab.prototype),ArtistsTab.prototype.supportsAlphaPicker=function(){return!0},ArtistsTab.prototype.getQueryIncludeItemTypes=function(){return[]},ArtistsTab.prototype.getApiClientQueryMethodName=function(){return"albumartists"===this.options.mode?"getAlbumArtists":"getArtists"},ArtistsTab.prototype.getSettingsKey=function(){var suffix="-"+(this.options.mode||"artists");return ItemsTab.prototype.getSettingsKey.call(this)+suffix},ArtistsTab.prototype.getItemTypes=function(){return["MusicArtist"]},ArtistsTab.prototype.getBaseQuery=function(){var query=ItemsTab.prototype.getBaseQuery.apply(this,arguments);return"albumartists"===this.options.mode?query.ArtistType="AlbumArtist":"composers"===this.options.mode?query.ArtistType="Composer":query.ArtistType="Artist,AlbumArtist",query},ArtistsTab.prototype.getPrefixesApiClientMethodName=function(){return"getArtistPrefixes"},ArtistsTab.prototype.getPrefixQueryIncludeItemTypes=function(){return[]},ArtistsTab.prototype.loadTemplate=function(){return this.loadItemsTemplate()};export default ArtistsTab;