Artist

struct Artist : KodiItem, Sendable

Artist details

  • Public Init

    Declaration

    Swift

    public init(
        /// Media have to be set; this to identify the init
        media: Library.Media,
        title: String = "",
        playcount: Int = 0,
        file: String = "",
        lastPlayed: String = "",
        duration: Int = 0,
        userRating: Int = 0,
        resume: Video.Resume = Video.Resume(),
        artist: String = "",
        artistID: Library.ID = 0,
        born: String = "",
        description: String = "",
        died: String = "",
        disambiguation: String = "",
        disbanded: String = "",
        formed: String = "",
        gender: String = "",
        instrument: [String] = [],
        isAlbumArtist: Bool = false,
        mood: [String] = [],
        musicBrainzArtistID: [String] = [],
        roles: [Audio.Artist.Roles] = [],
        songGenres: [Audio.Details.Genres] = [],
        sortName: String = "",
        style: [String] = [],
        type: String = "",
        yearsActive: [String] = [],
        art: Media.Artwork = Media.Artwork(),
        dateAdded: String = "",
        genre: [String] = [],
        fanart: String = "",
        thumbnail: String = ""
    )
  • id

    Calculated variables

    The ID of the album

    Declaration

    Swift

    public var id: String
  • The Kodi ID of the album

    Declaration

    Swift

    public var kodiID: Library.ID
  • The type of media

    Declaration

    Swift

    public var media: Library.Media
  • The title of the artist (‘artist’ property)

    Declaration

    Swift

    public var title: String
  • The sort title of the artist

    Note

    If sortName is set for the item it will be used, else the artist

    Declaration

    Swift

    public var sortByTitle: String
  • The subtitle of the album (‘displayArtist’ property)

    Declaration

    Swift

    public var subtitle: String
  • The details of the album (‘year’ property)

    Declaration

    Swift

    public var details: String
  • The search string

    Declaration

    Swift

    public var search: String
  • The poster of the album

    Declaration

    Swift

    public var poster: String
  • Not in use but needed by protocol

    The resume position of the artist

    Declaration

    Swift

    public var resume: Video.Resume
  • The location of the artist

    Declaration

    Swift

    public var file: String
  • The rating of the artist

    Declaration

    Swift

    public var rating: Double
  • The user rating of the artist

    Declaration

    Swift

    public var userRating: Int
  • The playcount of the artist

    Declaration

    Swift

    public var playcount: Int
  • The release year of the artist

    Declaration

    Swift

    public var year: Int
  • The last played date of the artist

    Declaration

    Swift

    public var lastPlayed: String
  • The duration of the artist

    Declaration

    Swift

    public var duration: Int
  • Audio.Details.Artist

    Declaration

    Swift

    public var artist: String
  • Undocumented

    Declaration

    Swift

    public var artistID: Library.ID
  • Undocumented

    Declaration

    Swift

    public var born: String
  • This always returns nil public var compilationArtist: Bool = false

    Declaration

    Swift

    public var compilationArtist: Bool { get }
  • Declaration

    Swift

    public var description: String
  • Undocumented

    Declaration

    Swift

    public var died: String
  • Undocumented

    Declaration

    Swift

    public var disambiguation: String
  • Undocumented

    Declaration

    Swift

    public var disbanded: String
  • Undocumented

    Declaration

    Swift

    public var formed: String
  • Undocumented

    Declaration

    Swift

    public var gender: String
  • Undocumented

    Declaration

    Swift

    public var instrument: [String]
  • Undocumented

    Declaration

    Swift

    public var isAlbumArtist: Bool
  • Undocumented

    Declaration

    Swift

    public var mood: [String]
  • Undocumented

    Declaration

    Swift

    public var musicBrainzArtistID: [String]
  • Undocumented

    Declaration

    Swift

    public var roles: [Audio.Artist.Roles]
  • Undocumented

    Declaration

    Swift

    public var songGenres: [Audio.Details.Genres]
  • Undocumented

    Declaration

    Swift

    public var sortName: String
  • Undocumented

    Declaration

    Swift

    public var style: [String]
  • Undocumented

    Declaration

    Swift

    public var type: String
  • Undocumented

    Declaration

    Swift

    public var yearsActive: [String]
  • art

    Audio.Details.Base

    Declaration

    Swift

    public var art: Media.Artwork
  • Declaration

    Swift

    public var dateAdded: String
  • Undocumented

    Declaration

    Swift

    public var genre: [String]
  • Media.Details.Base

    Declaration

    Swift

    public var fanart: String
  • Undocumented

    Declaration

    Swift

    public var thumbnail: String
  • Custom decoder

    Declaration

    Swift

    init(from decoder: Decoder) throws