VideoLibrary
public enum VideoLibrary
Video Library information (Kodi Namespace)
-
getEpisodes(tvshowID:
Asynchronous)
-
getEpisodeDetails(episodeID:
Asynchronous)
-
setEpisodeDetails(episode:
Asynchronous) Update the given episode with the given details (Kodi API)
Declaration
Swift
public static func setEpisodeDetails(episode: Video.Details.Episode) async
Parameters
episode
The
Video/Details/Episode
item
-
getGenres(type:
Asynchronous)
-
getMovieSets()
AsynchronousRetrieve all movie sets (Kodi API)
Declaration
Swift
public static func getMovieSets() async -> [Video.Details.MovieSet]
Return Value
All movie sets in an
Video/Details/MovieSet
array
-
getMovieSetDetails(setID:
Asynchronous)
-
getMovies()
AsynchronousRetrieve all movies (Kodi API)
Declaration
Swift
public static func getMovies() async -> [Video.Details.Movie]
Return Value
All movies in an
Video/Details/Movie
array
-
getMovieDetails(movieID:
Asynchronous)
-
setMovieDetails(movie:
Asynchronous) Update the given movie with the given details (Kodi API)
Declaration
Swift
public static func setMovieDetails(movie: Video.Details.Movie) async
Parameters
movie
The
Video/Details/Movie
Item
-
getMusicVideos()
AsynchronousRetrieve all music videos (Kodi API)
Declaration
Swift
public static func getMusicVideos() async -> [Video.Details.MusicVideo]
Return Value
All music videos in an
Video/Details/MusicVideo
array
-
getMusicVideoDetails(musicVideoID:
Asynchronous)
-
setMusicVideoDetails(musicVideo:
Asynchronous) Update the given music video with the given details (Kodi API)
Declaration
Swift
public static func setMusicVideoDetails(musicVideo: Video.Details.MusicVideo) async
Parameters
musicVideo
The
Video/Details/MusicVideo
item
-
refreshMusicVideo(musicVideo:
Asynchronous) Refresh the given music video in the library (Kodi API)
Declaration
Swift
public static func refreshMusicVideo(musicVideo: Video.Details.MusicVideo) async
Parameters
musicVideo
The
Video/Details/MusicVideo
item
-
getTVShows()
AsynchronousRetrieve all TV shows (Kodi API)
Declaration
Swift
public static func getTVShows() async -> [Video.Details.TVShow]
Return Value
All TV shows in an
Video/Details/TVShow
array
-
getTVShowDetails(tvshowID:
Asynchronous)
-
setTVShowDetails(tvshow:
Asynchronous) Update the given tv show with the given details (Kodi API)
Note
Kodi does not send a notification if a TV show is changed
Declaration
Swift
public static func setTVShowDetails(tvshow: Video.Details.TVShow) async
Parameters
tvshow
The
Video/Details/TVShow
Item
-
getAllVideoGenres()
AsynchronousGet all video genres from the Kodi host (SwiftlyKodi API)
Declaration
Swift
public static func getAllVideoGenres() async -> [Library.Details.Genre]
Return Value
All video genres from the Kodi host
-
Get all Music Video Artists (SwiftlyKodi API)
If the artist is not know in the Music database, a new Artist item will be created
Declaration
Swift
public static func getMusicVideoArtists() -> [Audio.Details.Artist]
Return Value
All artists
-
getVideoLibraryStatus()
AsynchronousGet the status of the Video Library (SwiftlyKodi API)
Declaration
Swift
public static func getVideoLibraryStatus() async -> Library.Status
Return Value
Current status of all video items