Archive:JSON-RPC API/v4: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Sam
(fixed)
>Sam
(fixed)
Line 187: Line 187:
     'method': 'JSONRPC.Introspect',  
     'method': 'JSONRPC.Introspect',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': { /* no additional properties allowed */
     'result': {
          
          
     }
     }
Line 237: Line 237:
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
        'controlgui': undefined /* boolean, required */,
         'controlnotify': undefined /* boolean, required */,  
         'controlnotify': undefined /* boolean, required */,  
         'controlplayback': undefined /* boolean, required */,  
         'controlplayback': undefined /* boolean, required */,  
         'controlpower': undefined /* boolean, required */,  
         'controlpower': undefined /* boolean, required */,  
        'controlsystem': undefined /* boolean, required */,
         'navigate': undefined /* boolean, required */,  
         'navigate': undefined /* boolean, required */,  
         'readdata': undefined /* boolean, required */,  
         'readdata': undefined /* boolean, required */,  
Line 609: Line 607:
             'type': 'unknown' /* string */,  
             'type': 'unknown' /* string */,  
             'votes': '' /* string */,  
             'votes': '' /* string */,  
            'watchedepisodes': 0 /* integer */,
             'writer': '' /* string */,  
             'writer': '' /* string */,  
             'director': '' /* string */,  
             'director': '' /* string */,  
Line 640: Line 637:
                 ]
                 ]
             },  
             },  
            'dateadded': '' /* string */,
             'file': '' /* string */,  
             'file': '' /* string */,  
             'lastplayed': '' /* string */,  
             'lastplayed': '' /* string */,  
Line 945: Line 941:
         } or { /* no additional properties allowed */
         } or { /* no additional properties allowed */
             'path': undefined /* string, required */,  
             'path': undefined /* string, required */,  
             'random': true /* boolean, Deprecated, use the shuffled property of the options parameter instead */,  
             'random': true /* boolean */,  
             'recursive': true /* boolean */
             'recursive': true /* boolean */
        },
        'options': { /* no additional properties allowed */
            'repeat': undefined /* null */ or 'off' /* string, id: Player.Repeat */,
            'resume': undefined /* boolean, Whether to resume from the resume point or not */ or 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100, Percentage value to start from */ or { /* id: Player.Position.Time, no additional properties allowed, Time to start from */
                'hours': 0 /* integer, minimum: 0, maximum: 23 */,
                'milliseconds': 0 /* integer, minimum: 0, maximum: 999 */,
                'minutes': 0 /* integer, minimum: 0, maximum: 59 */,
                'seconds': 0 /* integer, minimum: 0, maximum: 59 */
            },
            'shuffled': undefined /* null */ or undefined /* boolean */
         }
         }
     }
     }
Line 981: Line 967:
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
        'play': undefined /* boolean */ or undefined /* string */
     }
     }
}
}
Line 1,058: Line 1,043:
     'params': {
     'params': {
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'value': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100, Percentage value to seek to */ or { /* id: Player.Position.Time, no additional properties allowed, Time to seek to */
         'value': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100, Percentage value to seek to */ or { /* no additional properties allowed, Time to seek to */
             'hours': 0 /* integer, minimum: 0, maximum: 23 */,  
             'hours': 0 /* integer, minimum: 0, maximum: 23 */,  
             'milliseconds': 0 /* integer, minimum: 0, maximum: 999 */,  
             'milliseconds': 0 /* integer, minimum: 0, maximum: 999 */,  
Line 1,127: Line 1,112:
     'params': {
     'params': {
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'speed': undefined /* integer */ or 'increment' /* string, id: Global.IncrementDecrement */
         'speed': undefined /* integer */ or undefined /* string */
     }
     }
}
}
Line 1,154: Line 1,139:
     'params': {
     'params': {
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */,  
         'subtitle': undefined /* string */ or undefined /* integer, minimum: 0, Index of the subtitle to display */,
         'subtitle': undefined /* string */ or undefined /* integer, minimum: 0, Index of the subtitle to display */
        'enable': false /* boolean, Whether to enable subtitles to be displayed after setting the new subtitle */
     }
     }
}
}
Line 1,462: Line 1,446:
                 'type': 'unknown' /* string */,  
                 'type': 'unknown' /* string */,  
                 'votes': '' /* string */,  
                 'votes': '' /* string */,  
                'watchedepisodes': 0 /* integer */,
                 'writer': '' /* string */,  
                 'writer': '' /* string */,  
                 'director': '' /* string */,  
                 'director': '' /* string */,  
Line 1,493: Line 1,476:
                     ]
                     ]
                 },  
                 },  
                'dateadded': '' /* string */,
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                 'lastplayed': '' /* string */,  
                 'lastplayed': '' /* string */,  
Line 1,685: Line 1,667:
         'directory': undefined /* string, required */,  
         'directory': undefined /* string, required */,  
         'media': 'video' /* string, id: Files.Media */,  
         'media': 'video' /* string, id: Files.Media */,  
         'properties': [ /* id: List.Fields.Files */
         'properties': [ /* id: List.Fields.All */
             undefined /* string */
             undefined /* string */
         ],  
         ],  
Line 1,707: Line 1,689:
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                 'filetype': undefined /* string, required */,  
                 'filetype': undefined /* string, required */,  
                'lastmodified': '' /* string */,
                'mimetype': '' /* string */,
                'size': 0 /* integer, Size of the file in kB (1000 Byte) */,
                 'album': '' /* string */,  
                 'album': '' /* string */,  
                 'albumartist': '' /* string */,  
                 'albumartist': '' /* string */,  
Line 1,753: Line 1,732:
                 'type': 'unknown' /* string */,  
                 'type': 'unknown' /* string */,  
                 'votes': '' /* string */,  
                 'votes': '' /* string */,  
                'watchedepisodes': 0 /* integer */,
                 'writer': '' /* string */,  
                 'writer': '' /* string */,  
                 'director': '' /* string */,  
                 'director': '' /* string */,  
Line 1,784: Line 1,762:
                     ]
                     ]
                 },  
                 },  
                'dateadded': '' /* string */,
                 'lastplayed': '' /* string */,  
                 'lastplayed': '' /* string */,  
                 'plot': '' /* string */,  
                 'plot': '' /* string */,  
Line 1,894: Line 1,871:
         'type': undefined /* required */
         'type': undefined /* required */
     }
     }
}
</syntaxhighlight>
===AudioLibrary.OnScanFinished===
Scanning the audio library has been finished.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'AudioLibrary.OnScanFinished',
    'params': undefined /* string, required */ or undefined /* null, required */
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 2,352: Line 2,319:
                 'duration': 0 /* integer */,  
                 'duration': 0 /* integer */,  
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                'lastplayed': '' /* string */,
                 'lyrics': '' /* string */,  
                 'lyrics': '' /* string */,  
                 'musicbrainzartistid': '' /* string */,  
                 'musicbrainzartistid': '' /* string */,  
Line 2,374: Line 2,340:
}
}
</syntaxhighlight>
</syntaxhighlight>
===AudioLibrary.GetRecentlyPlayedAlbums===
===AudioLibrary.GetSongDetails===
Retrieve recently played albums
Retrieve details about a specific song
====Permissions====
====Permissions====
ReadData
ReadData
Line 2,382: Line 2,348:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetRecentlyPlayedAlbums',  
     'method': 'AudioLibrary.GetSongDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'properties': [ /* id: Audio.Fields.Album */
        'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
         'properties': [ /* id: Audio.Fields.Song */
             undefined /* string */
             undefined /* string */
         ],
         ]
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
        },
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */,
            'method': 'none' /* string */,
            'order': 'ascending' /* string */
        }
     }
     }
}
}
Line 2,404: Line 2,362:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetRecentlyPlayedAlbums',  
     'method': 'AudioLibrary.GetSongDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'albums': [ /* array */
         'songdetails': { /* id: Audio.Details.Song */
             { /* id: Audio.Details.Album */
             'album': '' /* string */,
                'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'albumartist': '' /* string */,
                'albumlabel': '' /* string */,
            'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,  
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,  
            'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,  
                'description': '' /* string */,  
            'comment': '' /* string */,  
                'mood': '' /* string */,  
            'duration': 0 /* integer */,  
                'style': '' /* string */,  
            'file': '' /* string */,  
                'theme': '' /* string */,  
            'lyrics': '' /* string */,  
                'type': '' /* string */,  
            'musicbrainzartistid': '' /* string */,  
                'artist': '' /* string */,  
            'musicbrainztrackid': '' /* string */,  
                'musicbrainzalbumartistid': '' /* string */,  
            'playcount': 0 /* integer */,  
                'musicbrainzalbumid': '' /* string */,  
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                'rating': 0 /* integer */,  
            'track': 0 /* integer */,  
                'title': '' /* string */,  
            'artist': '' /* string */,  
                'year': 0 /* integer */,  
            'musicbrainzalbumartistid': '' /* string */,  
                'genre': '' /* string */,  
            'musicbrainzalbumid': '' /* string */,  
                'fanart': '' /* string */,  
            'rating': 0 /* integer */,  
                'thumbnail': '' /* string */,  
            'title': '' /* string */,  
                'label': undefined /* string, required */
            'year': 0 /* integer */,
             }
             'genre': '' /* string */,
        ],
             'fanart': '' /* string */,  
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
             'thumbnail': '' /* string */,  
             'end': -1 /* integer, minimum: 0 */,  
             'label': undefined /* string, required */
             'start': 0 /* integer, minimum: 0 */,  
             'total': undefined /* integer, required, minimum: 0 */
         }
         }
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===AudioLibrary.GetRecentlyPlayedSongs===
===AudioLibrary.GetSongs===
Retrieve recently played songs
Retrieve all songs from specified album, artist or genre
====Permissions====
====Permissions====
ReadData
ReadData
Line 2,445: Line 2,401:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetRecentlyPlayedSongs',  
     'method': 'AudioLibrary.GetSongs',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
        'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,
        'genreid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'properties': [ /* id: Audio.Fields.Song */
         'properties': [ /* id: Audio.Fields.Song */
             undefined /* string */
             undefined /* string */
Line 2,467: Line 2,426:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetRecentlyPlayedSongs',  
     'method': 'AudioLibrary.GetSongs',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
Line 2,484: Line 2,443:
                 'duration': 0 /* integer */,  
                 'duration': 0 /* integer */,  
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                'lastplayed': '' /* string */,
                 'lyrics': '' /* string */,  
                 'lyrics': '' /* string */,  
                 'musicbrainzartistid': '' /* string */,  
                 'musicbrainzartistid': '' /* string */,  
Line 2,506: Line 2,464:
}
}
</syntaxhighlight>
</syntaxhighlight>
===AudioLibrary.GetSongDetails===
===AudioLibrary.Scan===
Retrieve details about a specific song
Scans the audio sources for new library items
====Permissions====
====Permissions====
ReadData
UpdateData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetSongDetails',  
     'method': 'AudioLibrary.Scan',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'properties': [ /* id: Audio.Fields.Song */
            undefined /* string */
        ]
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 2,528: Line 2,480:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetSongDetails',  
     'method': 'AudioLibrary.Scan',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'songdetails': { /* id: Audio.Details.Song */
}
            'album': '' /* string */,
</syntaxhighlight>
            'albumartist': '' /* string */,
=VideoLibrary=
            'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,
Video Library information
            'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
==Notifications==
            'comment': '' /* string */,
===VideoLibrary.OnRemove===
            'duration': 0 /* integer */,
A video item has been removed.
            'file': '' /* string */,
====Returns====
            'lastplayed': '' /* string */,  
<syntaxhighlight lang="javascript">
            'lyrics': '' /* string */,  
{
            'musicbrainzartistid': '' /* string */,  
    'jsonrpc': '2.0',  
            'musicbrainztrackid': '' /* string */,
    'method': 'VideoLibrary.OnRemove',  
            'playcount': 0 /* integer */,
    'params': undefined /* string, required */ or { /* required */
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'track': 0 /* integer */,
        'type': undefined /* required */
            'artist': '' /* string */,
            'musicbrainzalbumartistid': '' /* string */,
            'musicbrainzalbumid': '' /* string */,
            'rating': 0 /* integer */,
            'title': '' /* string */,
            'year': 0 /* integer */,
            'genre': '' /* string */,
            'fanart': '' /* string */,
            'thumbnail': '' /* string */,
            'label': undefined /* string, required */
        }
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===AudioLibrary.GetSongs===
===VideoLibrary.OnUpdate===
Retrieve all songs from specified album, artist or genre
A video item has been updated.
====Permissions====
====Returns====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetSongs',  
     'method': 'VideoLibrary.OnUpdate',  
     'id': undefined /* integer, required */,
     'params': undefined /* string, required */ or { /* required */
    'params': {
         'id': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'playcount': -1 /* integer, minimum: 0 */,  
         'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,  
         'type': undefined /* string ('movie', 'tvshow', 'episode', 'musicvideo'), required, id: Notifications.Library.Video.Type */
         'genreid': -1 /* integer, id: Library.Id, minimum: 1 */,  
    }
         'properties': [ /* id: Audio.Fields.Song */
}
            undefined /* string */
</syntaxhighlight>
        ],  
==Methods==
        'limits': { /* id: List.Limits, no additional properties allowed */
===VideoLibrary.Clean===
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
Cleans the video library from non-existent items
            'start': 0 /* integer, minimum: 0 */
====Permissions====
        },
RemoveData
        'sort': { /* id: List.Sort */
====Syntax====
            'ignorearticle': false /* boolean */,  
<syntaxhighlight lang="javascript">
            'method': 'none' /* string */,  
{
            'order': 'ascending' /* string */
    'jsonrpc': '2.0',  
        }
    'method': 'VideoLibrary.Clean',  
    }
    'id': undefined /* integer, required */
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 2,593: Line 2,532:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.GetSongs',  
     'method': 'VideoLibrary.Clean',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
}
            'end': -1 /* integer, minimum: 0 */,
</syntaxhighlight>
            'start': 0 /* integer, minimum: 0 */,
===VideoLibrary.Export===
            'total': undefined /* integer, required, minimum: 0 */
Exports all items from the video library
        },
====Permissions====
        'songs': [ /* array */
WriteFile
            { /* id: Audio.Details.Song */
====Syntax====
                'album': '' /* string */,
                'albumartist': '' /* string */,
                'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
                'comment': '' /* string */,
                'duration': 0 /* integer */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'lyrics': '' /* string */,
                'musicbrainzartistid': '' /* string */,
                'musicbrainztrackid': '' /* string */,
                'playcount': 0 /* integer */,
                'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'track': 0 /* integer */,
                'artist': '' /* string */,
                'musicbrainzalbumartistid': '' /* string */,
                'musicbrainzalbumid': '' /* string */,
                'rating': 0 /* integer */,
                'title': '' /* string */,
                'year': 0 /* integer */,
                'genre': '' /* string */,
                'fanart': '' /* string */,
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ]
    }
}
</syntaxhighlight>
===AudioLibrary.Scan===
Scans the audio sources for new library items
====Permissions====
UpdateData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.Scan',  
     'method': 'VideoLibrary.Export',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'directory': '' /* string */
         'options': { /* no additional properties allowed */
    }
            'path': undefined /* string, required, minimum length: 1, Path to the directory to where the data should be exported */
}
         } or { /* no additional properties allowed */
</syntaxhighlight>
             'actorthumbs': false /* boolean, Whether to export actor thumbnails */,  
====Returns====
             'images': false /* boolean, Whether to export thumbnails and fanart images */,  
<syntaxhighlight lang="javascript">
             'overwrite': false /* boolean, Whether to overwrite existing exported files */
{
         }
    'jsonrpc': '2.0',
    'method': 'AudioLibrary.Scan',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===AudioLibrary.SetAlbumDetails===
Update the given album with the given details
====Permissions====
UpdateData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'AudioLibrary.SetAlbumDetails',
    'id': undefined /* integer, required */,
    'params': {
        'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
        'title': undefined /* null */ or undefined /* string */,
         'artist': undefined /* null */ or [ /* array, id: Array.String */
             undefined /* string, minimum length: 1 */
        ],
        'description': undefined /* null */ or undefined /* string */,  
        'genre': undefined /* null */ or [ /* array, id: Array.String */
             undefined /* string, minimum length: 1 */
        ],
        'theme': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],  
        'mood': undefined /* null */ or [ /* array, id: Array.String */
             undefined /* string, minimum length: 1 */
        ],
        'style': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
         ],
        'type': undefined /* null */ or undefined /* string */,
        'albumlabel': undefined /* null */ or undefined /* string */,
        'rating': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'year': undefined /* null */ or undefined /* integer, minimum: 0 */
     }
     }
}
}
Line 2,696: Line 2,562:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.SetAlbumDetails',  
     'method': 'VideoLibrary.Export',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===AudioLibrary.SetArtistDetails===
===VideoLibrary.GetEpisodeDetails===
Update the given artist with the given details
Retrieve details about a specific tv show episode
====Permissions====
====Permissions====
UpdateData
ReadData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.SetArtistDetails',  
     'method': 'VideoLibrary.GetEpisodeDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
         'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
         'artist': undefined /* null */ or undefined /* string */,
         'properties': [ /* id: Video.Fields.Episode */
        'instrument': undefined /* null */ or [ /* array, id: Array.String */
             undefined /* string, Requesting the cast and/or resume field will result in increased response times */
            undefined /* string, minimum length: 1 */
        ],
        'style': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'mood': undefined /* null */ or [ /* array, id: Array.String */
             undefined /* string, minimum length: 1 */
        ],
        'born': undefined /* null */ or undefined /* string */,
        'formed': undefined /* null */ or undefined /* string */,
        'description': undefined /* null */ or undefined /* string */,
        'genre': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'died': undefined /* null */ or undefined /* string */,
        'disbanded': undefined /* null */ or undefined /* string */,
        'yearsactive': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
         ]
         ]
     }
     }
Line 2,741: Line 2,589:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'AudioLibrary.SetArtistDetails',  
     'method': 'VideoLibrary.GetEpisodeDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': {
}
        'episodedetails': { /* id: Video.Details.Episode */
</syntaxhighlight>
            'cast': [ /* array, id: Video.Cast */
===AudioLibrary.SetSongDetails===
                { /* no additional properties allowed */
Update the given song with the given details
                    'name': undefined /* string, required */,
====Permissions====
                    'role': undefined /* string, required */,  
UpdateData
                    'thumbnail': '' /* string */
====Syntax====
                }
<syntaxhighlight lang="javascript">
            ],  
{
            'episode': 0 /* integer */,  
    'jsonrpc': '2.0',  
            'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
    'method': 'AudioLibrary.SetSongDetails',  
            'firstaired': '' /* string */,
    'id': undefined /* integer, required */,  
            'originaltitle': '' /* string */,  
    'params': {
            'productioncode': '' /* string */,
        'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'rating': 0 /* number */,
        'title': undefined /* null */ or undefined /* string */,  
             'season': 0 /* integer */,  
        'artist': undefined /* null */ or [ /* array, id: Array.String */
            'showtitle': '' /* string */,
             undefined /* string, minimum length: 1 */
            'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,
        ],  
             'votes': '' /* string */,  
        'albumartist': undefined /* null */ or [ /* array, id: Array.String */
            'writer': '' /* string */,  
             undefined /* string, minimum length: 1 */
            'director': '' /* string */,
        ],  
            'resume': { /* id: Video.Resume, no additional properties allowed */
        'genre': undefined /* null */ or [ /* array, id: Array.String */
                'position': 0 /* number, minimum: 0 */,  
            undefined /* string, minimum length: 1 */
                'total': 0 /* number, minimum: 0 */
        ],  
            },
        'year': undefined /* null */ or undefined /* integer, minimum: 0 */,  
            'runtime': '' /* string */,  
        'rating': undefined /* null */ or undefined /* integer, minimum: 0 */,
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
        'album': undefined /* null */ or undefined /* string */,  
                'audio': [ /* array, minimum items: 1 */
        'track': undefined /* null */ or undefined /* integer, minimum: 0 */,
                    { /* no additional properties allowed */
        'duration': undefined /* null */ or undefined /* integer, minimum: 0 */,
                        'channels': 0 /* integer */,
        'comment': undefined /* null */ or undefined /* string */,  
                        'codec': '' /* string */,  
        'musicbrainztrackid': undefined /* null */ or undefined /* string */,  
                        'language': '' /* string */
        'musicbrainzartistid': undefined /* null */ or undefined /* string */,  
                    }
        'musicbrainzalbumid': undefined /* null */ or undefined /* string */,  
                ],
        'musicbrainzalbumartistid': undefined /* null */ or undefined /* string */
                'subtitle': [ /* array, minimum items: 1 */
    }
                    { /* no additional properties allowed */
}
                        'language': '' /* string */
</syntaxhighlight>
                    }
====Returns====
                ],
<syntaxhighlight lang="javascript">
                'video': [ /* array, minimum items: 1 */
{
                    { /* no additional properties allowed */
    'jsonrpc': '2.0',  
                        'aspect': 0 /* number */,
    'method': 'AudioLibrary.SetSongDetails',  
                        'codec': '' /* string */,  
    'id': undefined /* integer, required */,  
                        'duration': 0 /* integer */,
    'result': undefined /* string */
                        'height': 0 /* integer */,  
                        'width': 0 /* integer */
                    }
                ]
            },
            'file': '' /* string */,  
            'lastplayed': '' /* string */,
            'plot': '' /* string */,  
            'title': '' /* string */,
            'playcount': 0 /* integer */,  
            'fanart': '' /* string */,  
            'thumbnail': '' /* string */,  
            'label': undefined /* string, required */
        }
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
=VideoLibrary=
===VideoLibrary.GetEpisodes===
Video Library information
Retrieve all tv show episodes
==Notifications==
====Permissions====
===VideoLibrary.OnRemove===
ReadData
A video item has been removed.
====Syntax====
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.OnRemove',  
     'method': 'VideoLibrary.GetEpisodes',  
     'params': undefined /* string, required */ or { /* required */
     'id': undefined /* integer, required */,
         'id': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
    'params': {
         'type': undefined /* required */
        'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'season': -1 /* integer, minimum: 0 */,
        'properties': [ /* id: Video.Fields.Episode */
            undefined /* string, Requesting the cast and/or resume field will result in increased response times */
        ],  
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
        },  
         'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */,
            'method': 'none' /* string */,
            'order': 'ascending' /* string */
        }
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.OnScanFinished===
Scanning the video library has been finished.
====Returns====
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.OnScanFinished',  
     'method': 'VideoLibrary.GetEpisodes',  
     'params': undefined /* string, required */ or undefined /* null, required */
     'id': undefined /* integer, required */,
}
    'result': {
</syntaxhighlight>
        'episodes': [ /* array */
===VideoLibrary.OnUpdate===
            { /* id: Video.Details.Episode */
A video item has been updated.
                'cast': [ /* array, id: Video.Cast */
====Returns====
                    { /* no additional properties allowed */
<syntaxhighlight lang="javascript">
                        'name': undefined /* string, required */,
{
                        'role': undefined /* string, required */,
    'jsonrpc': '2.0',  
                        'thumbnail': '' /* string */
    'method': 'VideoLibrary.OnUpdate',  
                    }
    'params': undefined /* string, required */ or { /* required */
                ],
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                'episode': 0 /* integer */,
        'playcount': -1 /* integer, minimum: 0 */,  
                'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'type': undefined /* string ('movie', 'tvshow', 'episode', 'musicvideo'), required, id: Notifications.Library.Video.Type */
                'firstaired': '' /* string */,
    }
                'originaltitle': '' /* string */,  
}
                'productioncode': '' /* string */,  
</syntaxhighlight>
                'rating': 0 /* number */,  
==Methods==
                'season': 0 /* integer */,
===VideoLibrary.Clean===
                'showtitle': '' /* string */,
Cleans the video library from non-existent items
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,  
====Permissions====
                'votes': '' /* string */,  
RemoveData
                'writer': '' /* string */,  
====Syntax====
                'director': '' /* string */,
<syntaxhighlight lang="javascript">
                'resume': { /* id: Video.Resume, no additional properties allowed */
{
                    'position': 0 /* number, minimum: 0 */,  
    'jsonrpc': '2.0',  
                    'total': 0 /* number, minimum: 0 */
    'method': 'VideoLibrary.Clean',  
                },
    'id': undefined /* integer, required */
                'runtime': '' /* string */,  
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */,
                            'codec': '' /* string */,
                            'language': '' /* string */
                        }
                    ],
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ],
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */,
                            'codec': '' /* string */,
                            'duration': 0 /* integer */,
                            'height': 0 /* integer */,
                            'width': 0 /* integer */
                        }
                    ]
                },
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,
                'title': '' /* string */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,  
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ],
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */,
            'start': 0 /* integer, minimum: 0 */,  
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
====Returns====
===VideoLibrary.GetGenres===
<syntaxhighlight lang="javascript">
Retrieve all genres
{
====Permissions====
    'jsonrpc': '2.0',
ReadData
    'method': 'VideoLibrary.Clean',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===VideoLibrary.Export===
Exports all items from the video library
====Permissions====
WriteFile
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.Export',  
     'method': 'VideoLibrary.GetGenres',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'options': { /* no additional properties allowed */
         'type': undefined /* string, required */,
             'path': undefined /* string, required, minimum length: 1, Path to the directory to where the data should be exported */
        'properties': [ /* id: Library.Fields.Genre */
         } or { /* no additional properties allowed */
            undefined /* string */
             'actorthumbs': false /* boolean, Whether to export actor thumbnails */,  
        ],
             'images': false /* boolean, Whether to export thumbnails and fanart images */,  
        'limits': { /* id: List.Limits, no additional properties allowed */
             'overwrite': false /* boolean, Whether to overwrite existing exported files */
             'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
         },
        'sort': { /* id: List.Sort */
             'ignorearticle': false /* boolean */,  
             'method': 'none' /* string */,  
             'order': 'ascending' /* string */
         }
         }
     }
     }
Line 2,877: Line 2,785:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.Export',  
     'method': 'VideoLibrary.GetGenres',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': {
}
        'genres': [ /* array, required */
</syntaxhighlight>
            { /* id: Library.Details.Genre */
===VideoLibrary.GetEpisodeDetails===
                'genreid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
Retrieve details about a specific tv show episode
                'thumbnail': '' /* string */,
                'title': '' /* string */,
                'label': undefined /* string, required */
            }
        ],
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */,
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}
</syntaxhighlight>
===VideoLibrary.GetMovieDetails===
Retrieve details about a specific movie
====Permissions====
====Permissions====
ReadData
ReadData
Line 2,890: Line 2,812:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetEpisodeDetails',  
     'method': 'VideoLibrary.GetMovieDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
         'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
         'properties': [ /* id: Video.Fields.Episode */
         'properties': [ /* id: Video.Fields.Movie */
             undefined /* string, Requesting the cast and/or resume field will result in increased response times */
             undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
         ]
         ]
     }
     }
Line 2,904: Line 2,826:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetEpisodeDetails',  
     'method': 'VideoLibrary.GetMovieDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'episodedetails': { /* id: Video.Details.Episode */
         'moviedetails': { /* id: Video.Details.Movie */
             'cast': [ /* array, id: Video.Cast */
             'cast': [ /* array, id: Video.Cast */
                 { /* no additional properties allowed */
                 { /* no additional properties allowed */
Line 2,915: Line 2,837:
                 }
                 }
             ],  
             ],  
             'episode': 0 /* integer */,  
             'country': '' /* string */,
             'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'genre': '' /* string */,
             'firstaired': '' /* string */,  
            'imdbnumber': '' /* string */,  
             'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
             'mpaa': '' /* string */,  
             'originaltitle': '' /* string */,  
             'originaltitle': '' /* string */,  
            'plotoutline': '' /* string */,
            'premiered': '' /* string */,
             'productioncode': '' /* string */,  
             'productioncode': '' /* string */,  
             'rating': 0 /* number */,  
             'rating': 0 /* number */,  
             'season': 0 /* integer */,  
             'set': [ /* array, id: Array.String */
             'showtitle': '' /* string */,  
                undefined /* string, minimum length: 1 */
             'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,  
            ],
            'setid': [ /* array, id: Array.Integer */
                undefined /* integer */
            ],
            'showlink': '' /* string */,
            'sorttitle': '' /* string */,  
             'studio': '' /* string */,  
             'tagline': '' /* string */,  
            'top250': 0 /* integer */,  
            'trailer': '' /* string */,  
             'votes': '' /* string */,  
             'votes': '' /* string */,  
             'writer': '' /* string */,  
             'writer': '' /* string */,  
            'year': 0 /* integer */,
             'director': '' /* string */,  
             'director': '' /* string */,  
             'resume': { /* id: Video.Resume, no additional properties allowed */
             'resume': { /* id: Video.Resume, no additional properties allowed */
Line 2,955: Line 2,891:
                 ]
                 ]
             },  
             },  
            'dateadded': '' /* string */,
             'file': '' /* string */,  
             'file': '' /* string */,  
             'lastplayed': '' /* string */,  
             'lastplayed': '' /* string */,  
Line 2,968: Line 2,903:
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetEpisodes===
===VideoLibrary.GetMovieSetDetails===
Retrieve all tv show episodes
Retrieve details about a specific movie set
====Permissions====
====Permissions====
ReadData
ReadData
Line 2,976: Line 2,911:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetEpisodes',  
     'method': 'VideoLibrary.GetMovieSetDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
        'season': -1 /* integer, minimum: 0 */,  
         'properties': [ /* id: Video.Fields.MovieSet */
         'properties': [ /* id: Video.Fields.Episode */
             undefined /* string */
             undefined /* string, Requesting the cast and/or resume field will result in increased response times */
         ],  
         ],  
         'limits': { /* id: List.Limits, no additional properties allowed */
         'movies': {
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
            'limits': { /* id: List.Limits, no additional properties allowed */
            'start': 0 /* integer, minimum: 0 */
                'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
        },  
                'start': 0 /* integer, minimum: 0 */
        'sort': { /* id: List.Sort */
            },  
            'ignorearticle': false /* boolean */,  
            'properties': [ /* id: Video.Fields.Movie */
            'method': 'none' /* string */,  
                undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
            'order': 'ascending' /* string */
            ],
         }
            'sort': { /* id: List.Sort */
     }
                'ignorearticle': false /* boolean */,  
                'method': 'none' /* string */,  
                'order': 'ascending' /* string */
            }
         }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 3,000: Line 2,939:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetEpisodes',  
     'method': 'VideoLibrary.GetMovieSetDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'episodes': [ /* array */
         'setdetails': { /* id: Video.Details.MovieSet.Extended */
            { /* id: Video.Details.Episode */
            'movies': [ /* array */
                'cast': [ /* array, id: Video.Cast */
                 { /* id: Video.Details.Movie */
                    { /* no additional properties allowed */
                     'cast': [ /* array, id: Video.Cast */
                        'name': undefined /* string, required */,
                        'role': undefined /* string, required */,
                        'thumbnail': '' /* string */
                    }
                ],
                 'episode': 0 /* integer */,
                'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'firstaired': '' /* string */,
                'originaltitle': '' /* string */,
                'productioncode': '' /* string */,
                'rating': 0 /* number */,
                'season': 0 /* integer */,
                'showtitle': '' /* string */,
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,
                'votes': '' /* string */,
                'writer': '' /* string */,
                'director': '' /* string */,
                'resume': { /* id: Video.Resume, no additional properties allowed */
                     'position': 0 /* number, minimum: 0 */,  
                    'total': 0 /* number, minimum: 0 */
                },
                'runtime': '' /* string */,
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                         { /* no additional properties allowed */
                         { /* no additional properties allowed */
                             'channels': 0 /* integer */,  
                             'name': undefined /* string, required */,  
                             'codec': '' /* string */,  
                             'role': undefined /* string, required */,  
                             'language': '' /* string */
                             'thumbnail': '' /* string */
                         }
                         }
                     ],  
                     ],  
                     'subtitle': [ /* array, minimum items: 1 */
                     'country': '' /* string */,
                        { /* no additional properties allowed */
                    'genre': '' /* string */,
                            'language': '' /* string */
                    'imdbnumber': '' /* string */,
                         }
                    'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                    'mpaa': '' /* string */,
                    'originaltitle': '' /* string */,
                    'plotoutline': '' /* string */,
                    'premiered': '' /* string */,
                    'productioncode': '' /* string */,
                    'rating': 0 /* number */,
                    'set': [ /* array, id: Array.String */
                        undefined /* string, minimum length: 1 */
                    ],
                    'setid': [ /* array, id: Array.Integer */
                         undefined /* integer */
                     ],  
                     ],  
                     'video': [ /* array, minimum items: 1 */
                     'showlink': '' /* string */,
                         { /* no additional properties allowed */
                    'sorttitle': '' /* string */,
                             'aspect': 0 /* number */,  
                    'studio': '' /* string */,
                            'codec': '' /* string */,  
                    'tagline': '' /* string */,
                            'duration': 0 /* integer */,  
                    'top250': 0 /* integer */,
                            'height': 0 /* integer */,  
                    'trailer': '' /* string */,
                            'width': 0 /* integer */
                    'votes': '' /* string */,
                        }
                    'writer': '' /* string */,
                    ]
                    'year': 0 /* integer */,
                },  
                    'director': '' /* string */,
                'dateadded': '' /* string */,
                    'resume': { /* id: Video.Resume, no additional properties allowed */
                'file': '' /* string */,  
                        'position': 0 /* number, minimum: 0 */,
                'lastplayed': '' /* string */,  
                        'total': 0 /* number, minimum: 0 */
                'plot': '' /* string */,  
                    },
                'title': '' /* string */,  
                    'runtime': '' /* string */,
                'playcount': 0 /* integer */,  
                    'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                'fanart': '' /* string */,  
                        'audio': [ /* array, minimum items: 1 */
                'thumbnail': '' /* string */,  
                            { /* no additional properties allowed */
                'label': undefined /* string, required */
                                'channels': 0 /* integer */,
            }
                                'codec': '' /* string */,
        ],  
                                'language': '' /* string */
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
                            }
             'end': -1 /* integer, minimum: 0 */,  
                         ],
             'start': 0 /* integer, minimum: 0 */,  
                        'subtitle': [ /* array, minimum items: 1 */
             'total': undefined /* integer, required, minimum: 0 */
                            { /* no additional properties allowed */
         }
                                'language': '' /* string */
     }
                            }
}
                        ],
</syntaxhighlight>
                        'video': [ /* array, minimum items: 1 */
===VideoLibrary.GetGenres===
                             { /* no additional properties allowed */
Retrieve all genres
                                'aspect': 0 /* number */,  
====Permissions====
                                'codec': '' /* string */,  
ReadData
                                'duration': 0 /* integer */,  
====Syntax====
                                'height': 0 /* integer */,  
                                'width': 0 /* integer */
                            }
                        ]
                    },  
                    'file': '' /* string */,  
                    'lastplayed': '' /* string */,  
                    'plot': '' /* string */,  
                    'title': '' /* string */,  
                    'playcount': 0 /* integer */,  
                    'fanart': '' /* string */,  
                    'thumbnail': '' /* string */,  
                    'label': undefined /* string, required */
                }
            ],  
            'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
             'title': '' /* string */,  
            'playcount': 0 /* integer */,  
             'fanart': '' /* string */,  
            'thumbnail': '' /* string */,  
             'label': undefined /* string, required */
         }
     }
}
</syntaxhighlight>
===VideoLibrary.GetMovieSets===
Retrieve all movie sets
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetGenres',  
     'method': 'VideoLibrary.GetMovieSets',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
        'type': undefined /* string, required */,
         'properties': [ /* id: Video.Fields.MovieSet */
         'properties': [ /* id: Library.Fields.Genre */
             undefined /* string */
             undefined /* string */
         ],  
         ],  
Line 3,102: Line 3,056:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetGenres',  
     'method': 'VideoLibrary.GetMovieSets',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'genres': [ /* array, required */
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
             { /* id: Library.Details.Genre */
            'end': -1 /* integer, minimum: 0 */,
                 'genreid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        },
        'sets': [ /* array */
             { /* id: Video.Details.MovieSet */
                 'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'title': '' /* string */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,  
                 'thumbnail': '' /* string */,  
                 'thumbnail': '' /* string */,  
                'title': '' /* string */,
                 'label': undefined /* string, required */
                 'label': undefined /* string, required */
             }
             }
         ],
         ]
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */,
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        }
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetMovieDetails===
===VideoLibrary.GetMovies===
Retrieve details about a specific movie
Retrieve all movies
====Permissions====
====Permissions====
ReadData
ReadData
Line 3,129: Line 3,085:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovieDetails',  
     'method': 'VideoLibrary.GetMovies',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
        'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
         'properties': [ /* id: Video.Fields.Movie */
         'properties': [ /* id: Video.Fields.Movie */
             undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
             undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
         ]
         ],
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
        },
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */,
            'method': 'none' /* string */,
            'order': 'ascending' /* string */
        }
     }
     }
}
}
Line 3,143: Line 3,107:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovieDetails',  
     'method': 'VideoLibrary.GetMovies',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'moviedetails': { /* id: Video.Details.Movie */
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'cast': [ /* array, id: Video.Cast */
             'end': -1 /* integer, minimum: 0 */,  
                { /* no additional properties allowed */
             'start': 0 /* integer, minimum: 0 */,  
                    'name': undefined /* string, required */,
             'total': undefined /* integer, required, minimum: 0 */
                    'role': undefined /* string, required */,
        },  
                    'thumbnail': '' /* string */
        'movies': [ /* array */
                }
             { /* id: Video.Details.Movie */
            ],
                 'cast': [ /* array, id: Video.Cast */
            'country': '' /* string */,
            'genre': '' /* string */,
            'imdbnumber': '' /* string */,
             'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
            'mpaa': '' /* string */,
            'originaltitle': '' /* string */,
            'plotoutline': '' /* string */,
            'premiered': '' /* string */,
            'productioncode': '' /* string */,  
             'rating': 0 /* number */,
            'set': [ /* array, id: Array.String */
                undefined /* string, minimum length: 1 */
            ],  
             'setid': [ /* array, id: Array.Integer */
                undefined /* integer */
            ],  
            'showlink': '' /* string */,
            'sorttitle': '' /* string */,
            'studio': '' /* string */,
            'tagline': '' /* string */,
            'top250': 0 /* integer */,
            'trailer': '' /* string */,
            'votes': '' /* string */,
            'writer': '' /* string */,
            'year': 0 /* integer */,
            'director': '' /* string */,
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */,
                'total': 0 /* number, minimum: 0 */
            },  
            'runtime': '' /* string */,
             'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                 'audio': [ /* array, minimum items: 1 */
                     { /* no additional properties allowed */
                     { /* no additional properties allowed */
                         'channels': 0 /* integer */,  
                         'name': undefined /* string, required */,  
                         'codec': '' /* string */,  
                         'role': undefined /* string, required */,  
                         'language': '' /* string */
                         'thumbnail': '' /* string */
                     }
                     }
                 ],  
                 ],  
                 'subtitle': [ /* array, minimum items: 1 */
                 'country': '' /* string */,
                    { /* no additional properties allowed */
                'genre': '' /* string */,
                        'language': '' /* string */
                'imdbnumber': '' /* string */,
                     }
                'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'mpaa': '' /* string */,
                'originaltitle': '' /* string */,
                'plotoutline': '' /* string */,
                'premiered': '' /* string */,
                'productioncode': '' /* string */,
                'rating': 0 /* number */,
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ],
                'setid': [ /* array, id: Array.Integer */
                     undefined /* integer */
                 ],  
                 ],  
                 'video': [ /* array, minimum items: 1 */
                 'showlink': '' /* string */,
                    { /* no additional properties allowed */
                'sorttitle': '' /* string */,  
                        'aspect': 0 /* number */,  
                'studio': '' /* string */,  
                        'codec': '' /* string */,  
                'tagline': '' /* string */,  
                        'duration': 0 /* integer */,  
                'top250': 0 /* integer */,  
                        'height': 0 /* integer */,  
                'trailer': '' /* string */,
                        'width': 0 /* integer */
                 'votes': '' /* string */,  
                    }
                'writer': '' /* string */,  
                 ]
                'year': 0 /* integer */,  
            },
                'director': '' /* string */,  
            'dateadded': '' /* string */,  
                'resume': { /* id: Video.Resume, no additional properties allowed */
            'file': '' /* string */,  
                    'position': 0 /* number, minimum: 0 */,  
            'lastplayed': '' /* string */,  
                    'total': 0 /* number, minimum: 0 */
            'plot': '' /* string */,  
                },  
            'title': '' /* string */,  
                'runtime': '' /* string */,  
            'playcount': 0 /* integer */,  
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
            'fanart': '' /* string */,  
                    'audio': [ /* array, minimum items: 1 */
            'thumbnail': '' /* string */,
                        { /* no additional properties allowed */
            'label': undefined /* string, required */
                            'channels': 0 /* integer */,  
        }
                            'codec': '' /* string */,  
    }
                            'language': '' /* string */
}
                        }
</syntaxhighlight>
                    ],  
===VideoLibrary.GetMovieSetDetails===
                    'subtitle': [ /* array, minimum items: 1 */
Retrieve details about a specific movie set
                        { /* no additional properties allowed */
====Permissions====
                            'language': '' /* string */
ReadData
                        }
====Syntax====
                    ],  
<syntaxhighlight lang="javascript">
                    'video': [ /* array, minimum items: 1 */
{
                        { /* no additional properties allowed */
    'jsonrpc': '2.0',  
                            'aspect': 0 /* number */,
    'method': 'VideoLibrary.GetMovieSetDetails',  
                            'codec': '' /* string */,  
    'id': undefined /* integer, required */,  
                            'duration': 0 /* integer */,  
    'params': {
                            'height': 0 /* integer */,  
        'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                            'width': 0 /* integer */
        'properties': [ /* id: Video.Fields.MovieSet */
                        }
            undefined /* string */
                    ]
        ],  
                },  
        'movies': {
                'file': '' /* string */,
            'limits': { /* id: List.Limits, no additional properties allowed */
                 'lastplayed': '' /* string */,  
                'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
                'plot': '' /* string */,  
                'start': 0 /* integer, minimum: 0 */
                'title': '' /* string */,
            },  
                 'playcount': 0 /* integer */,  
            'properties': [ /* id: Video.Fields.Movie */
                 'fanart': '' /* string */,  
                 undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
                 'thumbnail': '' /* string */,
            ],  
                'label': undefined /* string, required */
            'sort': { /* id: List.Sort */
                 'ignorearticle': false /* boolean */,  
                 'method': 'none' /* string */,  
                 'order': 'ascending' /* string */
             }
             }
         }
         ]
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
====Returns====
===VideoLibrary.GetMusicVideoDetails===
Retrieve details about a specific music video
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovieSetDetails',  
     'method': 'VideoLibrary.GetMusicVideoDetails',
    'id': undefined /* integer, required */,
    'params': {
        'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'properties': [ /* id: Video.Fields.MusicVideo */
            undefined /* string, Requesting the resume field will result in increased response times */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'VideoLibrary.GetMusicVideoDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'setdetails': { /* id: Video.Details.MovieSet.Extended */
         'musicvideodetails': { /* id: Video.Details.MusicVideo */
             'movies': [ /* array */
             'album': '' /* string */,  
                { /* id: Video.Details.Movie */
            'artist': '' /* string */,  
                    'cast': [ /* array, id: Video.Cast */
            'genre': '' /* string */,  
                        { /* no additional properties allowed */
            'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                            'name': undefined /* string, required */,  
            'studio': '' /* string */,  
                            'role': undefined /* string, required */,
            'track': 0 /* integer */,  
                            'thumbnail': '' /* string */
            'year': 0 /* integer */,  
                        }
            'director': '' /* string */,  
                    ],  
            'resume': { /* id: Video.Resume, no additional properties allowed */
                    'country': '' /* string */,
                'position': 0 /* number, minimum: 0 */,  
                    'genre': '' /* string */,  
                'total': 0 /* number, minimum: 0 */
                    'imdbnumber': '' /* string */,
            },  
                    'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'runtime': '' /* string */,  
                    'mpaa': '' /* string */,
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'originaltitle': '' /* string */,
                'audio': [ /* array, minimum items: 1 */
                    'plotoutline': '' /* string */,
                    { /* no additional properties allowed */
                    'premiered': '' /* string */,
                        'channels': 0 /* integer */,  
                    'productioncode': '' /* string */,
                        'codec': '' /* string */,  
                    'rating': 0 /* number */,
                        'language': '' /* string */
                    'set': [ /* array, id: Array.String */
                    }
                        undefined /* string, minimum length: 1 */
                ],  
                    ],
                'subtitle': [ /* array, minimum items: 1 */
                    'setid': [ /* array, id: Array.Integer */
                    { /* no additional properties allowed */
                        undefined /* integer */
                        'language': '' /* string */
                    ],
                    }
                    'showlink': '' /* string */,
                ],  
                    'sorttitle': '' /* string */,
                'video': [ /* array, minimum items: 1 */
                    'studio': '' /* string */,  
                    { /* no additional properties allowed */
                    'tagline': '' /* string */,
                        'aspect': 0 /* number */,  
                    'top250': 0 /* integer */,  
                        'codec': '' /* string */,  
                    'trailer': '' /* string */,
                        'duration': 0 /* integer */,  
                    'votes': '' /* string */,
                        'height': 0 /* integer */,  
                    'writer': '' /* string */,
                        'width': 0 /* integer */
                    'year': 0 /* integer */,  
                    }
                    'director': '' /* string */,  
                ]
                    'resume': { /* id: Video.Resume, no additional properties allowed */
            },  
                        'position': 0 /* number, minimum: 0 */,  
            'file': '' /* string */,  
                        'total': 0 /* number, minimum: 0 */
            'lastplayed': '' /* string */,  
                    },  
            'plot': '' /* string */,  
                    'runtime': '' /* string */,  
             'title': '' /* string */,  
                    'streamdetails': { /* id: Video.Streams, no additional properties allowed */
             'playcount': 0 /* integer */,  
                        'audio': [ /* array, minimum items: 1 */
             'fanart': '' /* string */,  
                            { /* no additional properties allowed */
             'thumbnail': '' /* string */,  
                                'channels': 0 /* integer */,  
             'label': undefined /* string, required */
                                'codec': '' /* string */,  
         }
                                'language': '' /* string */
     }
                            }
}
                        ],  
</syntaxhighlight>
                        'subtitle': [ /* array, minimum items: 1 */
===VideoLibrary.GetMusicVideos===
                            { /* no additional properties allowed */
Retrieve all music videos
                                'language': '' /* string */
====Permissions====
                            }
ReadData
                        ],  
====Syntax====
                        'video': [ /* array, minimum items: 1 */
<syntaxhighlight lang="javascript">
                            { /* no additional properties allowed */
{
                                'aspect': 0 /* number */,  
     'jsonrpc': '2.0',  
                                'codec': '' /* string */,  
     'method': 'VideoLibrary.GetMusicVideos',  
                                'duration': 0 /* integer */,  
                                'height': 0 /* integer */,  
                                'width': 0 /* integer */
                            }
                        ]
                    },  
                    'dateadded': '' /* string */,
                    'file': '' /* string */,  
                    'lastplayed': '' /* string */,  
                    'plot': '' /* string */,
                    'title': '' /* string */,
                    'playcount': 0 /* integer */,
                    'fanart': '' /* string */,
                    'thumbnail': '' /* string */,
                    'label': undefined /* string, required */
                }
            ],
            'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
             'title': '' /* string */,  
             'playcount': 0 /* integer */,  
             'fanart': '' /* string */,  
             'thumbnail': '' /* string */,  
             'label': undefined /* string, required */
         }
     }
}
</syntaxhighlight>
===VideoLibrary.GetMovieSets===
Retrieve all movie sets
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovieSets',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'properties': [ /* id: Video.Fields.MovieSet */
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
             undefined /* string */
        'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'properties': [ /* id: Video.Fields.MusicVideo */
             undefined /* string, Requesting the resume field will result in increased response times */
         ],  
         ],  
         'limits': { /* id: List.Limits, no additional properties allowed */
         'limits': { /* id: List.Limits, no additional properties allowed */
Line 3,375: Line 3,297:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovieSets',  
     'method': 'VideoLibrary.GetMusicVideos',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
Line 3,383: Line 3,305:
             'total': undefined /* integer, required, minimum: 0 */
             'total': undefined /* integer, required, minimum: 0 */
         },  
         },  
         'sets': [ /* array */
         'musicvideos': [ /* array */
             { /* id: Video.Details.MovieSet */
             { /* id: Video.Details.MusicVideo */
                 'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                 'album': '' /* string */,
                 'title': '' /* string */,  
                'artist': '' /* string */,
                 'playcount': 0 /* integer */,  
                'genre': '' /* string */,
                 'fanart': '' /* string */,  
                'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                 'thumbnail': '' /* string */,  
                'studio': '' /* string */,
                 'label': undefined /* string, required */
                'track': 0 /* integer */,
             }
                'year': 0 /* integer */,
         ]
                'director': '' /* string */,
     }
                'resume': { /* id: Video.Resume, no additional properties allowed */
}
                    'position': 0 /* number, minimum: 0 */,
</syntaxhighlight>
                    'total': 0 /* number, minimum: 0 */
===VideoLibrary.GetMovies===
                },
Retrieve all movies
                'runtime': '' /* string */,
====Permissions====
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
ReadData
                    'audio': [ /* array, minimum items: 1 */
====Syntax====
                        { /* no additional properties allowed */
<syntaxhighlight lang="javascript">
                            'channels': 0 /* integer */,
{
                            'codec': '' /* string */,
                            'language': '' /* string */
                        }
                    ],
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ],
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */,
                            'codec': '' /* string */,
                            'duration': 0 /* integer */,
                            'height': 0 /* integer */,
                            'width': 0 /* integer */
                        }
                    ]
                },
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,  
                 'title': '' /* string */,  
                 'playcount': 0 /* integer */,  
                 'fanart': '' /* string */,  
                 'thumbnail': '' /* string */,  
                 'label': undefined /* string, required */
             }
         ]
     }
}
</syntaxhighlight>
===VideoLibrary.GetRecentlyAddedEpisodes===
Retrieve all recently added tv episodes
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovies',  
     'method': 'VideoLibrary.GetRecentlyAddedEpisodes',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'properties': [ /* id: Video.Fields.Movie */
         'properties': [ /* id: Video.Fields.Episode */
             undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
             undefined /* string, Requesting the cast and/or resume field will result in increased response times */
         ],  
         ],  
         'limits': { /* id: List.Limits, no additional properties allowed */
         'limits': { /* id: List.Limits, no additional properties allowed */
Line 3,426: Line 3,386:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMovies',  
     'method': 'VideoLibrary.GetRecentlyAddedEpisodes',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
         'episodes': [ /* array */
            'end': -1 /* integer, minimum: 0 */,
             { /* id: Video.Details.Episode */
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        },
        'movies': [ /* array */
             { /* id: Video.Details.Movie */
                 'cast': [ /* array, id: Video.Cast */
                 'cast': [ /* array, id: Video.Cast */
                     { /* no additional properties allowed */
                     { /* no additional properties allowed */
Line 3,443: Line 3,398:
                     }
                     }
                 ],  
                 ],  
                 'country': '' /* string */,
                 'episode': 0 /* integer */,  
                'genre': '' /* string */,
                 'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                'imdbnumber': '' /* string */,  
                 'firstaired': '' /* string */,  
                 'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                 'mpaa': '' /* string */,  
                 'originaltitle': '' /* string */,  
                 'originaltitle': '' /* string */,  
                'plotoutline': '' /* string */,
                'premiered': '' /* string */,
                 'productioncode': '' /* string */,  
                 'productioncode': '' /* string */,  
                 'rating': 0 /* number */,  
                 'rating': 0 /* number */,  
                 'set': [ /* array, id: Array.String */
                 'season': 0 /* integer */,  
                    undefined /* string, minimum length: 1 */
                 'showtitle': '' /* string */,  
                ],
                 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,  
                'setid': [ /* array, id: Array.Integer */
                    undefined /* integer */
                ],  
                 'showlink': '' /* string */,  
                 'sorttitle': '' /* string */,  
                'studio': '' /* string */,  
                'tagline': '' /* string */,
                'top250': 0 /* integer */,
                'trailer': '' /* string */,  
                 'votes': '' /* string */,  
                 'votes': '' /* string */,  
                 'writer': '' /* string */,  
                 'writer': '' /* string */,  
                'year': 0 /* integer */,
                 'director': '' /* string */,  
                 'director': '' /* string */,  
                 'resume': { /* id: Video.Resume, no additional properties allowed */
                 'resume': { /* id: Video.Resume, no additional properties allowed */
Line 3,497: Line 3,438:
                     ]
                     ]
                 },  
                 },  
                'dateadded': '' /* string */,
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                 'lastplayed': '' /* string */,  
                 'lastplayed': '' /* string */,  
Line 3,507: Line 3,447:
                 'label': undefined /* string, required */
                 'label': undefined /* string, required */
             }
             }
         ]
         ],
     }
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
}
            'end': -1 /* integer, minimum: 0 */,
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        }
     }
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetMusicVideoDetails===
===VideoLibrary.GetRecentlyAddedMovies===
Retrieve details about a specific music video
Retrieve all recently added movies
====Permissions====
====Permissions====
ReadData
ReadData
Line 3,519: Line 3,464:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMusicVideoDetails',  
     'method': 'VideoLibrary.GetRecentlyAddedMovies',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
         'properties': [ /* id: Video.Fields.Movie */
         'properties': [ /* id: Video.Fields.MusicVideo */
            undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
             undefined /* string, Requesting the resume field will result in increased response times */
        ],
         ]
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
            'start': 0 /* integer, minimum: 0 */
        },  
         'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */,
             'method': 'none' /* string */,  
            'order': 'ascending' /* string */
         }
     }
     }
}
}
Line 3,533: Line 3,486:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMusicVideoDetails',  
     'method': 'VideoLibrary.GetRecentlyAddedMovies',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'musicvideodetails': { /* id: Video.Details.MusicVideo */
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'album': '' /* string */,  
             'end': -1 /* integer, minimum: 0 */,  
            'artist': '' /* string */,
             'start': 0 /* integer, minimum: 0 */,  
            'genre': '' /* string */,
            'total': undefined /* integer, required, minimum: 0 */
             'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        },  
            'studio': '' /* string */,
        'movies': [ /* array */
            'track': 0 /* integer */,  
             { /* id: Video.Details.Movie */
             'year': 0 /* integer */,
                 'cast': [ /* array, id: Video.Cast */
            'director': '' /* string */,
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */,  
                'total': 0 /* number, minimum: 0 */
            },  
            'runtime': '' /* string */,
             'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                 'audio': [ /* array, minimum items: 1 */
                     { /* no additional properties allowed */
                     { /* no additional properties allowed */
                         'channels': 0 /* integer */,  
                         'name': undefined /* string, required */,  
                         'codec': '' /* string */,  
                         'role': undefined /* string, required */,  
                         'language': '' /* string */
                         'thumbnail': '' /* string */
                     }
                     }
                 ],  
                 ],  
                 'subtitle': [ /* array, minimum items: 1 */
                 'country': '' /* string */,
                    { /* no additional properties allowed */
                'genre': '' /* string */,
                        'language': '' /* string */
                'imdbnumber': '' /* string */,
                     }
                'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'mpaa': '' /* string */,
                'originaltitle': '' /* string */,
                'plotoutline': '' /* string */,
                'premiered': '' /* string */,
                'productioncode': '' /* string */,
                'rating': 0 /* number */,
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ],
                'setid': [ /* array, id: Array.Integer */
                     undefined /* integer */
                 ],  
                 ],  
                 'video': [ /* array, minimum items: 1 */
                 'showlink': '' /* string */,
                     { /* no additional properties allowed */
                'sorttitle': '' /* string */,
                         'aspect': 0 /* number */,  
                'studio': '' /* string */,
                        'codec': '' /* string */,  
                'tagline': '' /* string */,
                        'duration': 0 /* integer */,  
                'top250': 0 /* integer */,
                        'height': 0 /* integer */,  
                'trailer': '' /* string */,
                        'width': 0 /* integer */
                'votes': '' /* string */,
                    }
                'writer': '' /* string */,
                ]
                'year': 0 /* integer */,
            },  
                'director': '' /* string */,
            'dateadded': '' /* string */,
                'resume': { /* id: Video.Resume, no additional properties allowed */
            'file': '' /* string */,  
                    'position': 0 /* number, minimum: 0 */,
            'lastplayed': '' /* string */,  
                    'total': 0 /* number, minimum: 0 */
            'plot': '' /* string */,  
                },
            'title': '' /* string */,  
                'runtime': '' /* string */,
            'playcount': 0 /* integer */,  
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
            'fanart': '' /* string */,  
                    'audio': [ /* array, minimum items: 1 */
            'thumbnail': '' /* string */,  
                        { /* no additional properties allowed */
            'label': undefined /* string, required */
                            'channels': 0 /* integer */,
         }
                            'codec': '' /* string */,
     }
                            'language': '' /* string */
}
                        }
</syntaxhighlight>
                    ],
===VideoLibrary.GetMusicVideos===
                     'subtitle': [ /* array, minimum items: 1 */
Retrieve all music videos
                        { /* no additional properties allowed */
====Permissions====
                            'language': '' /* string */
ReadData
                        }
                    ],
                    'video': [ /* array, minimum items: 1 */
                         { /* no additional properties allowed */
                            'aspect': 0 /* number */,  
                            'codec': '' /* string */,  
                            'duration': 0 /* integer */,  
                            'height': 0 /* integer */,  
                            'width': 0 /* integer */
                        }
                    ]
                },  
                'file': '' /* string */,  
                'lastplayed': '' /* string */,  
                'plot': '' /* string */,  
                'title': '' /* string */,  
                'playcount': 0 /* integer */,  
                'fanart': '' /* string */,  
                'thumbnail': '' /* string */,  
                'label': undefined /* string, required */
            }
         ]
     }
}
</syntaxhighlight>
===VideoLibrary.GetRecentlyAddedMusicVideos===
Retrieve all recently added music videos
====Permissions====
ReadData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMusicVideos',  
     'method': 'VideoLibrary.GetRecentlyAddedMusicVideos',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */,
        'albumid': -1 /* integer, id: Library.Id, minimum: 1 */,
         'properties': [ /* id: Video.Fields.MusicVideo */
         'properties': [ /* id: Video.Fields.MusicVideo */
             undefined /* string, Requesting the resume field will result in increased response times */
             undefined /* string, Requesting the resume field will result in increased response times */
Line 3,618: Line 3,600:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetMusicVideos',  
     'method': 'VideoLibrary.GetRecentlyAddedMusicVideos',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
Line 3,664: Line 3,646:
                     ]
                     ]
                 },  
                 },  
                'dateadded': '' /* string */,
                 'file': '' /* string */,  
                 'file': '' /* string */,  
                 'lastplayed': '' /* string */,  
                 'lastplayed': '' /* string */,  
Line 3,678: Line 3,659:
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetRecentlyAddedEpisodes===
===VideoLibrary.GetSeasons===
Retrieve all recently added tv episodes
Retrieve all tv seasons
====Permissions====
====Permissions====
ReadData
ReadData
Line 3,686: Line 3,667:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedEpisodes',  
     'method': 'VideoLibrary.GetSeasons',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'properties': [ /* id: Video.Fields.Episode */
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
             undefined /* string, Requesting the cast and/or resume field will result in increased response times */
         'properties': [ /* id: Video.Fields.Season */
             undefined /* string */
         ],  
         ],  
         'limits': { /* id: List.Limits, no additional properties allowed */
         'limits': { /* id: List.Limits, no additional properties allowed */
Line 3,708: Line 3,690:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedEpisodes',  
     'method': 'VideoLibrary.GetSeasons',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'episodes': [ /* array */
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            { /* id: Video.Details.Episode */
            'end': -1 /* integer, minimum: 0 */,
                'cast': [ /* array, id: Video.Cast */
            'start': 0 /* integer, minimum: 0 */,  
                    { /* no additional properties allowed */
            'total': undefined /* integer, required, minimum: 0 */
                        'name': undefined /* string, required */,  
        },  
                        'role': undefined /* string, required */,  
        'seasons': [ /* array */
                        'thumbnail': '' /* string */
            { /* id: Video.Details.Season */
                    }
                ],
                 'episode': 0 /* integer */,  
                 'episode': 0 /* integer */,  
                 'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                 'season': undefined /* integer, required */,  
                'firstaired': '' /* string */,
                'originaltitle': '' /* string */,
                'productioncode': '' /* string */,
                'rating': 0 /* number */,
                'season': 0 /* integer */,  
                 'showtitle': '' /* string */,  
                 'showtitle': '' /* string */,  
                 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,  
                 'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,  
                'votes': '' /* string */,
                 'playcount': 0 /* integer */,  
                'writer': '' /* string */,
                 'fanart': '' /* string */,  
                'director': '' /* string */,
                 'thumbnail': '' /* string */,  
                'resume': { /* id: Video.Resume, no additional properties allowed */
                 'label': undefined /* string, required */
                    'position': 0 /* number, minimum: 0 */,
             }
                    'total': 0 /* number, minimum: 0 */
         ]
                },
     }
                'runtime': '' /* string */,
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */,
                            'codec': '' /* string */,
                            'language': '' /* string */
                        }
                    ],
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ],
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */,
                            'codec': '' /* string */,
                            'duration': 0 /* integer */,
                            'height': 0 /* integer */,
                            'width': 0 /* integer */
                        }
                    ]
                },
                'dateadded': '' /* string */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,
                'title': '' /* string */,
                 'playcount': 0 /* integer */,  
                 'fanart': '' /* string */,  
                 'thumbnail': '' /* string */,  
                 'label': undefined /* string, required */
             }
         ],
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */,
            'start': 0 /* integer, minimum: 0 */,
            'total': undefined /* integer, required, minimum: 0 */
        }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetRecentlyAddedMovies===
===VideoLibrary.GetTVShowDetails===
Retrieve all recently added movies
Retrieve details about a specific tv show
====Permissions====
====Permissions====
ReadData
ReadData
Line 3,787: Line 3,721:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedMovies',  
     'method': 'VideoLibrary.GetTVShowDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'properties': [ /* id: Video.Fields.Movie */
         'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
         'properties': [ /* id: Video.Fields.TVShow */
        ],
             undefined /* string, Requesting the cast field will result in increased response times */
        'limits': { /* id: List.Limits, no additional properties allowed */
         ]
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
        },  
         'sort': { /* id: List.Sort */
             'ignorearticle': false /* boolean */,
            'method': 'none' /* string */,  
            'order': 'ascending' /* string */
         }
     }
     }
}
}
Line 3,809: Line 3,735:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedMovies',  
     'method': 'VideoLibrary.GetTVShowDetails',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': {
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
         'tvshowdetails': { /* id: Video.Details.TVShow */
            'end': -1 /* integer, minimum: 0 */,
            'cast': [ /* array, id: Video.Cast */
            'start': 0 /* integer, minimum: 0 */,
                { /* no additional properties allowed */
            'total': undefined /* integer, required, minimum: 0 */
                    'name': undefined /* string, required */,  
        },
                    'role': undefined /* string, required */,  
        'movies': [ /* array */
                    'thumbnail': '' /* string */
            { /* id: Video.Details.Movie */
                }
                'cast': [ /* array, id: Video.Cast */
            ],  
                    { /* no additional properties allowed */
            'episode': 0 /* integer */,  
                        'name': undefined /* string, required */,  
            'episodeguide': '' /* string */,  
                        'role': undefined /* string, required */,  
            'genre': '' /* string */,  
                        'thumbnail': '' /* string */
            'imdbnumber': '' /* string */,  
                    }
            'mpaa': '' /* string */,  
                ],  
            'originaltitle': '' /* string */,  
                'country': '' /* string */,  
            'premiered': '' /* string */,  
                'genre': '' /* string */,  
            'rating': 0 /* number */,  
                'imdbnumber': '' /* string */,  
            'sorttitle': '' /* string */,  
                'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
            'studio': '' /* string */,  
                'mpaa': '' /* string */,  
            'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,  
                'originaltitle': '' /* string */,  
            'votes': '' /* string */,
                'plotoutline': '' /* string */,  
            'year': 0 /* integer */,  
                'premiered': '' /* string */,  
            'file': '' /* string */,  
                'productioncode': '' /* string */,  
            'lastplayed': '' /* string */,  
                'rating': 0 /* number */,  
            'plot': '' /* string */,  
                'set': [ /* array, id: Array.String */
            'title': '' /* string */,  
                    undefined /* string, minimum length: 1 */
            'playcount': 0 /* integer */,  
                ],  
            'fanart': '' /* string */,  
                'setid': [ /* array, id: Array.Integer */
            'thumbnail': '' /* string */,  
                    undefined /* integer */
            'label': undefined /* string, required */
                ],  
        }
                'showlink': '' /* string */,  
    }
                'sorttitle': '' /* string */,  
}
                'studio': '' /* string */,  
</syntaxhighlight>
                'tagline': '' /* string */,  
===VideoLibrary.GetTVShows===
                'top250': 0 /* integer */,  
Retrieve all tv shows
                'trailer': '' /* string */,  
====Permissions====
                'votes': '' /* string */,  
ReadData
                'writer': '' /* string */,
====Syntax====
                'year': 0 /* integer */,
<syntaxhighlight lang="javascript">
                'director': '' /* string */,
{
                'resume': { /* id: Video.Resume, no additional properties allowed */
    'jsonrpc': '2.0',  
                    'position': 0 /* number, minimum: 0 */,
    'method': 'VideoLibrary.GetTVShows',  
                    'total': 0 /* number, minimum: 0 */
    'id': undefined /* integer, required */,  
                },
    'params': {
                'runtime': '' /* string */,  
        'properties': [ /* id: Video.Fields.TVShow */
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
            undefined /* string, Requesting the cast field will result in increased response times */
                    'audio': [ /* array, minimum items: 1 */
        ],  
                        { /* no additional properties allowed */
        'limits': { /* id: List.Limits, no additional properties allowed */
                            'channels': 0 /* integer */,  
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
                            'codec': '' /* string */,  
            'start': 0 /* integer, minimum: 0 */
                            'language': '' /* string */
        },  
                        }
        'sort': { /* id: List.Sort */
                    ],
            'ignorearticle': false /* boolean */,  
                    'subtitle': [ /* array, minimum items: 1 */
            'method': 'none' /* string */,  
                        { /* no additional properties allowed */
            'order': 'ascending' /* string */
                            'language': '' /* string */
        }
                        }
                    ],  
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */,  
                            'codec': '' /* string */,  
                            'duration': 0 /* integer */,  
                            'height': 0 /* integer */,  
                            'width': 0 /* integer */
                        }
                    ]
                },  
                'dateadded': '' /* string */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,  
                'plot': '' /* string */,  
                'title': '' /* string */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ]
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetRecentlyAddedMusicVideos===
====Returns====
Retrieve all recently added music videos
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedMusicVideos',  
     'method': 'VideoLibrary.GetTVShows',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'result': {
        'properties': [ /* id: Video.Fields.MusicVideo */
         'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            undefined /* string, Requesting the resume field will result in increased response times */
             'end': -1 /* integer, minimum: 0 */,  
        ],
             'start': 0 /* integer, minimum: 0 */,
         'limits': { /* id: List.Limits, no additional properties allowed */
            'total': undefined /* integer, required, minimum: 0 */
             'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
             'start': 0 /* integer, minimum: 0 */
         },  
         },  
         'sort': { /* id: List.Sort */
         'tvshows': [ /* array */
            'ignorearticle': false /* boolean */,  
            { /* id: Video.Details.TVShow */
            'method': 'none' /* string */,  
                'cast': [ /* array, id: Video.Cast */
            'order': 'ascending' /* string */
                    { /* no additional properties allowed */
         }
                        'name': undefined /* string, required */,
                        'role': undefined /* string, required */,
                        'thumbnail': '' /* string */
                    }
                ],
                'episode': 0 /* integer */,
                'episodeguide': '' /* string */,
                'genre': '' /* string */,
                'imdbnumber': '' /* string */,
                'mpaa': '' /* string */,
                'originaltitle': '' /* string */,
                'premiered': '' /* string */,
                'rating': 0 /* number */,
                'sorttitle': '' /* string */,
                'studio': '' /* string */,
                'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'votes': '' /* string */,
                'year': 0 /* integer */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,
                'title': '' /* string */,
                'playcount': 0 /* integer */,  
                'fanart': '' /* string */,  
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
         ]
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>
====Returns====
===VideoLibrary.Scan===
Scans the video sources for new library items
====Permissions====
UpdateData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'VideoLibrary.Scan',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetRecentlyAddedMusicVideos',  
     'method': 'VideoLibrary.Scan',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
}
            'end': -1 /* integer, minimum: 0 */,
</syntaxhighlight>
            'start': 0 /* integer, minimum: 0 */,
=Input=
            'total': undefined /* integer, required, minimum: 0 */
Allows limited navigation within XBMC
        },
==Methods==
        'musicvideos': [ /* array */
===Input.Back===
            { /* id: Video.Details.MusicVideo */
Goes back in GUI
                'album': '' /* string */,
====Permissions====
                'artist': '' /* string */,
Navigate
                'genre': '' /* string */,
====Syntax====
                'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
<syntaxhighlight lang="javascript">
                'studio': '' /* string */,
{
                'track': 0 /* integer */,
    'jsonrpc': '2.0',  
                'year': 0 /* integer */,
    'method': 'Input.Back',  
                'director': '' /* string */,
    'id': undefined /* integer, required */
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */,
                    'total': 0 /* number, minimum: 0 */
                },
                'runtime': '' /* string */,
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */,
                            'codec': '' /* string */,  
                            'language': '' /* string */
                        }
                    ],  
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ],
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */,
                            'codec': '' /* string */,
                            'duration': 0 /* integer */,
                            'height': 0 /* integer */,
                            'width': 0 /* integer */
                        }
                    ]
                },
                'dateadded': '' /* string */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,
                'title': '' /* string */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ]
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.GetSeasons===
====Returns====
Retrieve all tv seasons
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Back',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===Input.Down===
Navigate down in GUI
====Permissions====
====Permissions====
ReadData
Navigate
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetSeasons',  
     'method': 'Input.Down',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'properties': [ /* id: Video.Fields.Season */
            undefined /* string */
        ],
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,
            'start': 0 /* integer, minimum: 0 */
        },
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */,
            'method': 'none' /* string */,
            'order': 'ascending' /* string */
        }
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,015: Line 3,905:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetSeasons',  
     'method': 'Input.Down',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
}
            'end': -1 /* integer, minimum: 0 */,
</syntaxhighlight>
            'start': 0 /* integer, minimum: 0 */,
===Input.Home===
            'total': undefined /* integer, required, minimum: 0 */
Goes to home window in GUI
        },
        'seasons': [ /* array */
            { /* id: Video.Details.Season */
                'episode': 0 /* integer */,
                'season': undefined /* integer, required */,
                'showtitle': '' /* string */,
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */,
                'watchedepisodes': 0 /* integer */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ]
    }
}
</syntaxhighlight>
===VideoLibrary.GetTVShowDetails===
Retrieve details about a specific tv show
====Permissions====
====Permissions====
ReadData
Navigate
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetTVShowDetails',  
     'method': 'Input.Home',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'properties': [ /* id: Video.Fields.TVShow */
            undefined /* string, Requesting the cast field will result in increased response times */
        ]
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,061: Line 3,926:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetTVShowDetails',  
     'method': 'Input.Home',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'tvshowdetails': { /* id: Video.Details.TVShow */
}
            'cast': [ /* array, id: Video.Cast */
</syntaxhighlight>
                { /* no additional properties allowed */
===Input.Left===
                    'name': undefined /* string, required */,
Navigate left in GUI
                    'role': undefined /* string, required */,
                    'thumbnail': '' /* string */
                }
            ],
            'episode': 0 /* integer */,
            'episodeguide': '' /* string */,
            'genre': '' /* string */,
            'imdbnumber': '' /* string */,
            'mpaa': '' /* string */,
            'originaltitle': '' /* string */,
            'premiered': '' /* string */,
            'rating': 0 /* number */,
            'season': 0 /* integer */,
            'sorttitle': '' /* string */,
            'studio': '' /* string */,
            'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
            'votes': '' /* string */,
            'watchedepisodes': 0 /* integer */,
            'year': 0 /* integer */,
            'dateadded': '' /* string */,
            'file': '' /* string */,
            'lastplayed': '' /* string */,
            'plot': '' /* string */,
            'title': '' /* string */,
            'playcount': 0 /* integer */,
            'fanart': '' /* string */,
            'thumbnail': '' /* string */,
            'label': undefined /* string, required */
        }
    }
}
</syntaxhighlight>
===VideoLibrary.GetTVShows===
Retrieve all tv shows
====Permissions====
====Permissions====
ReadData
Navigate
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetTVShows',  
     'method': 'Input.Left',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
     'params': {
}
        'properties': [ /* id: Video.Fields.TVShow */
</syntaxhighlight>
            undefined /* string, Requesting the cast field will result in increased response times */
====Returns====
        ],
<syntaxhighlight lang="javascript">
        'limits': { /* id: List.Limits, no additional properties allowed */
{
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */,  
     'jsonrpc': '2.0',  
            'start': 0 /* integer, minimum: 0 */
    'method': 'Input.Left',  
        },
    'id': undefined /* integer, required */,  
        'sort': { /* id: List.Sort */
    'result': undefined /* string */
            'ignorearticle': false /* boolean */,  
}
            'method': 'none' /* string */,  
</syntaxhighlight>
            'order': 'ascending' /* string */
===Input.Right===
        }
Navigate right in GUI
    }
====Permissions====
Navigate
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',  
    'method': 'Input.Right',  
    'id': undefined /* integer, required */
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,130: Line 3,968:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.GetTVShows',  
     'method': 'Input.Right',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': {
     'result': undefined /* string */
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
}
            'end': -1 /* integer, minimum: 0 */,
</syntaxhighlight>
            'start': 0 /* integer, minimum: 0 */,
===Input.Select===
            'total': undefined /* integer, required, minimum: 0 */
Select current item in GUI
        },
====Permissions====
        'tvshows': [ /* array */
Navigate
            { /* id: Video.Details.TVShow */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */,
                        'role': undefined /* string, required */,
                        'thumbnail': '' /* string */
                    }
                ],
                'episode': 0 /* integer */,
                'episodeguide': '' /* string */,
                'genre': '' /* string */,
                'imdbnumber': '' /* string */,
                'mpaa': '' /* string */,
                'originaltitle': '' /* string */,
                'premiered': '' /* string */,
                'rating': 0 /* number */,
                'season': 0 /* integer */,
                'sorttitle': '' /* string */,
                'studio': '' /* string */,
                'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
                'votes': '' /* string */,
                'watchedepisodes': 0 /* integer */,
                'year': 0 /* integer */,
                'dateadded': '' /* string */,
                'file': '' /* string */,
                'lastplayed': '' /* string */,
                'plot': '' /* string */,
                'title': '' /* string */,
                'playcount': 0 /* integer */,
                'fanart': '' /* string */,
                'thumbnail': '' /* string */,
                'label': undefined /* string, required */
            }
        ]
    }
}
</syntaxhighlight>
===VideoLibrary.RemoveEpisode===
Removes the given episode from the library
====Permissions====
RemoveData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveEpisode',  
     'method': 'Input.Select',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,195: Line 3,989:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveEpisode',  
     'method': 'Input.Select',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.RemoveMovie===
===Input.Up===
Removes the given movie from the library
Navigate up in GUI
====Permissions====
====Permissions====
RemoveData
Navigate
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveMovie',  
     'method': 'Input.Up',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,219: Line 4,010:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveMovie',  
     'method': 'Input.Up',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.RemoveMusicVideo===
=Application=
Removes the given music video from the library
Application information and control
==Methods==
===Application.GetProperties===
Retrieves the values of the given properties
====Permissions====
====Permissions====
RemoveData
ReadData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveMusicVideo',  
     'method': 'Application.GetProperties',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */
         'properties': [ /* array, required, all items must be unique */
            'volume' /* string, id: Application.Property.Name */
        ]
     }
     }
}
}
Line 4,243: Line 4,039:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveMusicVideo',  
     'method': 'Application.GetProperties',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': { /* id: Application.Property.Value */
        'muted': false /* boolean */,
        'name': '' /* string, minimum length: 1 */,
        'version': {
            'major': undefined /* integer, required, minimum: 0 */,
            'minor': undefined /* integer, required, minimum: 0 */,
            'revision': undefined /* string */ or undefined /* integer, minimum: 0 */,
            'tag': undefined /* string, required */
        },
        'volume': 0 /* integer */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.RemoveTVShow===
===Application.Quit===
Removes the given tv show from the library
Quit application
====Permissions====
====Permissions====
RemoveData
ControlPower
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveTVShow',  
     'method': 'Application.Quit',  
     'id': undefined /* integer, required */,
     'id': undefined /* integer, required */
    'params': {
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,267: Line 4,070:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.RemoveTVShow',  
     'method': 'Application.Quit',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.Scan===
===Application.SetMute===
Scans the video sources for new library items
Toggle mute/unmute
====Permissions====
====Permissions====
UpdateData
ControlPlayback
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.Scan',  
     'method': 'Application.SetMute',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'directory': '' /* string */
         'mute': undefined /* boolean */ or undefined /* string */
     }
     }
}
}
Line 4,291: Line 4,094:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.Scan',  
     'method': 'Application.SetMute',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* boolean, Mute state */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.SetEpisodeDetails===
===Application.SetVolume===
Update the given episode with the given details
Set the current volume
====Permissions====
====Permissions====
UpdateData
ControlPlayback
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetEpisodeDetails',  
     'method': 'Application.SetVolume',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
         'volume': undefined /* integer, required, minimum: 0, maximum: 100 */
        'title': undefined /* null */ or undefined /* string */,
        'playcount': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'runtime': undefined /* null */ or undefined /* string */,
        'director': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'plot': undefined /* null */ or undefined /* string */,
        'rating': undefined /* null */ or undefined /* number, minimum: 2.2250738585072014e-308 */,
        'votes': undefined /* null */ or undefined /* string */,
        'lastplayed': undefined /* null */ or undefined /* string */,
        'writer': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'firstaired': undefined /* null */ or undefined /* string */,
        'productioncode': undefined /* null */ or undefined /* string */,
        'season': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'episode': undefined /* null */ or undefined /* integer, minimum: 0 */,  
        'originaltitle': undefined /* null */ or undefined /* string */
     }
     }
}
}
Line 4,333: Line 4,118:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetEpisodeDetails',  
     'method': 'Application.SetVolume',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* integer, minimum: 0 */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.SetMovieDetails===
=System=
Update the given movie with the given details
System controls and information
====Permissions====
==Notifications==
UpdateData
===System.OnLowBattery===
====Syntax====
The system is on low battery.
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetMovieDetails',
     'method': 'System.OnLowBattery',  
    'id': undefined /* integer, required */,  
     'params': undefined /* string, required */ or undefined /* null, required */
     'params': {
}
        'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'title': undefined /* null */ or undefined /* string */,  
        'playcount': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'runtime': undefined /* null */ or undefined /* string */,  
        'director': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'studio': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'year': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'plot': undefined /* null */ or undefined /* string */,
        'genre': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'rating': undefined /* null */ or undefined /* number, minimum: 2.2250738585072014e-308 */,
        'mpaa': undefined /* null */ or undefined /* string */,
        'imdbnumber': undefined /* null */ or undefined /* string */,
        'votes': undefined /* null */ or undefined /* string */,
        'lastplayed': undefined /* null */ or undefined /* string */,
        'originaltitle': undefined /* null */ or undefined /* string */,
        'trailer': undefined /* null */ or undefined /* string */,
        'tagline': undefined /* null */ or undefined /* string */,
        'plotoutline': undefined /* null */ or undefined /* string */,
        'writer': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'country': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'top250': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'sorttitle': undefined /* null */ or undefined /* string */,
        'set': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'showlink': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ]
    }
}
</syntaxhighlight>
</syntaxhighlight>
===System.OnQuit===
XBMC will be closed.
====Returns====
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetMovieDetails',  
     'method': 'System.OnQuit',  
     'id': undefined /* integer, required */,
     'params': undefined /* string, required */ or undefined /* null, required */
    'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.SetMusicVideoDetails===
===System.OnRestart===
Update the given music video with the given details
The system will be restarted.
====Permissions====
====Returns====
UpdateData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetMusicVideoDetails',
     'method': 'System.OnRestart',  
    'id': undefined /* integer, required */,  
     'params': undefined /* string, required */ or undefined /* null, required */
     'params': {
        'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
        'title': undefined /* null */ or undefined /* string */,  
        'playcount': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'runtime': undefined /* null */ or undefined /* string */,
        'director': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'studio': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'year': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'plot': undefined /* null */ or undefined /* string */,
        'album': undefined /* null */ or undefined /* string */,
        'artist': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'genre': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'track': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'lastplayed': undefined /* null */ or undefined /* string */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
===System.OnSleep===
The system will be suspended.
====Returns====
====Returns====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetMusicVideoDetails',  
     'method': 'System.OnSleep',  
     'id': undefined /* integer, required */,
     'params': undefined /* string, required */ or undefined /* null, required */
    'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===VideoLibrary.SetTVShowDetails===
===System.OnWake===
Update the given tvshow with the given details
The system woke up from suspension.
====Permissions====
====Returns====
UpdateData
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetTVShowDetails',  
     'method': 'System.OnWake',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
==Methods==
===System.GetProperties===
Retrieves the values of the given properties
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.GetProperties',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'params': {
     'params': {
         'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */,
         'properties': [ /* array, required, all items must be unique */
        'title': undefined /* null */ or undefined /* string */,
            'canshutdown' /* string, id: System.Property.Name */
        'playcount': undefined /* null */ or undefined /* integer, minimum: 0 */,
         ]
        'studio': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
        ],
        'year': undefined /* null */ or undefined /* integer, minimum: 0 */,
        'plot': undefined /* null */ or undefined /* string */,
        'genre': undefined /* null */ or [ /* array, id: Array.String */
            undefined /* string, minimum length: 1 */
         ],
        'rating': undefined /* null */ or undefined /* number, minimum: 2.2250738585072014e-308 */,
        'mpaa': undefined /* null */ or undefined /* string */,
        'imdbnumber': undefined /* null */ or undefined /* string */,
        'premiered': undefined /* null */ or undefined /* string */,
        'votes': undefined /* null */ or undefined /* string */,
        'lastplayed': undefined /* null */ or undefined /* string */,
        'originaltitle': undefined /* null */ or undefined /* string */,
        'sorttitle': undefined /* null */ or undefined /* string */,
        'episodeguide': undefined /* null */ or undefined /* string */
     }
     }
}
}
Line 4,481: Line 4,198:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'VideoLibrary.SetTVShowDetails',  
     'method': 'System.GetProperties',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': { /* id: System.Property.Value */
        'canhibernate': false /* boolean */,
        'canreboot': false /* boolean */,
        'canshutdown': false /* boolean */,
        'cansuspend': false /* boolean */
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
=Input=
===System.Hibernate===
Allows limited navigation within XBMC
Puts the system running XBMC into hibernate mode
==Methods==
===Input.Back===
Goes back in GUI
====Permissions====
====Permissions====
Navigate
ControlPower
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Back',  
     'method': 'System.Hibernate',  
     'id': undefined /* integer, required */
     'id': undefined /* integer, required */
}
}
Line 4,505: Line 4,224:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Back',  
     'method': 'System.Hibernate',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===Input.ContextMenu===
===System.Reboot===
Shows the context menu
Reboots the system running XBMC
====Permissions====
====Permissions====
Navigate
ControlPower
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.ContextMenu',  
     'method': 'System.Reboot',  
     'id': undefined /* integer, required */
     'id': undefined /* integer, required */
}
}
Line 4,526: Line 4,245:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.ContextMenu',  
     'method': 'System.Reboot',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===Input.Down===
===System.Shutdown===
Navigate down in GUI
Shuts the system running XBMC down
====Permissions====
====Permissions====
Navigate
ControlPower
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Down',  
     'method': 'System.Shutdown',  
     'id': undefined /* integer, required */
     'id': undefined /* integer, required */
}
}
Line 4,547: Line 4,266:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Down',  
     'method': 'System.Shutdown',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===Input.Home===
===System.Suspend===
Goes to home window in GUI
Suspends the system running XBMC
====Permissions====
====Permissions====
Navigate
ControlPower
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Home',  
     'method': 'System.Suspend',  
     'id': undefined /* integer, required */
     'id': undefined /* integer, required */
}
}
Line 4,568: Line 4,287:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Home',  
     'method': 'System.Suspend',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': undefined /* string */
}
}
</syntaxhighlight>
</syntaxhighlight>
===Input.Info===
=XBMC=
Shows the information dialog
Dumping ground for very XBMC specific operations
==Methods==
===XBMC.GetInfoBooleans===
Retrieve info booleans about XBMC and the system
====Permissions====
====Permissions====
Navigate
ReadData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Info',  
     'method': 'XBMC.GetInfoBooleans',  
     'id': undefined /* integer, required */
     'id': undefined /* integer, required */,
    'params': {
        'booleans': [ /* array, required, minimum items: 1 */
            undefined /* string */
        ]
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,589: Line 4,316:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Info',  
     'method': 'XBMC.GetInfoBooleans',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'result': { /* List of key-value pairs of the retrieved info booleans */
       
    }
}
}
</syntaxhighlight>
</syntaxhighlight>
===Input.Left===
===XBMC.GetInfoLabels===
Navigate left in GUI
Retrieve info labels about XBMC and the system
====Permissions====
====Permissions====
Navigate
ReadData
====Syntax====
====Syntax====
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Left',
     'method': 'XBMC.GetInfoLabels',  
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Left',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
     'result': undefined /* string */
     'params': {
}
        'labels': [ /* array, required, minimum items: 1, See http://wiki.xbmc.org/index.php?title=InfoLabels for a list of possible info labels */
</syntaxhighlight>
            undefined /* string */
===Input.Right===
        ]
Navigate right in GUI
    }
====Permissions====
Navigate
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',  
    'method': 'Input.Right',
    'id': undefined /* integer, required */
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 4,631: Line 4,344:
{
{
     'jsonrpc': '2.0',  
     'jsonrpc': '2.0',  
     'method': 'Input.Right',  
     'method': 'XBMC.GetInfoLabels',  
     'id': undefined /* integer, required */,  
     'id': undefined /* integer, required */,  
    'result': undefined /* string */
     'result': { /* List of key-value pairs of the retrieved info labels */
}
          
</syntaxhighlight>
===Input.Select===
Select current item in GUI
====Permissions====
Navigate
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Select',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Select',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===Input.Up===
Navigate up in GUI
====Permissions====
Navigate
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Up',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Input.Up',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
=Application=
Application information and control
==Notifications==
===Application.OnVolumeChanged===
The volume of the application has changed.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.OnVolumeChanged',
    'params': undefined /* string, required */ or { /* required */
        'muted': undefined /* boolean, required */,
        'volume': undefined /* integer, required, minimum: 0, maximum: 100 */
    }
}
</syntaxhighlight>
==Methods==
===Application.GetProperties===
Retrieves the values of the given properties
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.GetProperties',
    'id': undefined /* integer, required */,
    'params': {
        'properties': [ /* array, required, all items must be unique */
            'volume' /* string, id: Application.Property.Name */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.GetProperties',
    'id': undefined /* integer, required */,
    'result': { /* id: Application.Property.Value */
        'muted': false /* boolean */,
        'name': '' /* string, minimum length: 1 */,
        'version': {
            'major': undefined /* integer, required, minimum: 0 */,
            'minor': undefined /* integer, required, minimum: 0 */,
            'revision': undefined /* string */ or undefined /* integer, minimum: 0 */,
            'tag': undefined /* string, required */
        },
        'volume': 0 /* integer, minimum: 0, maximum: 100 */
    }
}
</syntaxhighlight>
===Application.Quit===
Quit application
====Permissions====
ControlPower
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.Quit',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.Quit',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===Application.SetMute===
Toggle mute/unmute
====Permissions====
ControlPlayback
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.SetMute',
    'id': undefined /* integer, required */,
    'params': {
        'mute': undefined /* boolean */ or undefined /* string */
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.SetMute',
    'id': undefined /* integer, required */,
    'result': undefined /* boolean, Mute state */
}
</syntaxhighlight>
===Application.SetVolume===
Set the current volume
====Permissions====
ControlPlayback
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.SetVolume',
    'id': undefined /* integer, required */,
    'params': {
        'volume': undefined /* integer, minimum: 0, maximum: 100 */ or 'increment' /* string, id: Global.IncrementDecrement */
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'Application.SetVolume',
    'id': undefined /* integer, required */,
    'result': undefined /* integer, minimum: 0 */
}
</syntaxhighlight>
=System=
System controls and information
==Notifications==
===System.OnLowBattery===
The system is on low battery.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.OnLowBattery',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
===System.OnQuit===
XBMC will be closed.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.OnQuit',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
===System.OnRestart===
The system will be restarted.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.OnRestart',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
===System.OnSleep===
The system will be suspended.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.OnSleep',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
===System.OnWake===
The system woke up from suspension.
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.OnWake',
    'params': undefined /* string, required */ or undefined /* null, required */
}
</syntaxhighlight>
==Methods==
===System.EjectOpticalDrive===
Ejects or closes the optical disc drive (if available)
====Permissions====
ControlSystem
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.EjectOpticalDrive',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.EjectOpticalDrive',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===System.GetProperties===
Retrieves the values of the given properties
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.GetProperties',
    'id': undefined /* integer, required */,
    'params': {
        'properties': [ /* array, required, all items must be unique */
            'canshutdown' /* string, id: System.Property.Name */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.GetProperties',
    'id': undefined /* integer, required */,
    'result': { /* id: System.Property.Value */
        'canhibernate': false /* boolean */,
        'canreboot': false /* boolean */,
        'canshutdown': false /* boolean */,
        'cansuspend': false /* boolean */
    }
}
</syntaxhighlight>
===System.Hibernate===
Puts the system running XBMC into hibernate mode
====Permissions====
ControlPower
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Hibernate',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Hibernate',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===System.Reboot===
Reboots the system running XBMC
====Permissions====
ControlPower
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Reboot',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Reboot',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===System.Shutdown===
Shuts the system running XBMC down
====Permissions====
ControlPower
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Shutdown',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Shutdown',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
===System.Suspend===
Suspends the system running XBMC
====Permissions====
ControlPower
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Suspend',
    'id': undefined /* integer, required */
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'System.Suspend',
    'id': undefined /* integer, required */,
    'result': undefined /* string */
}
</syntaxhighlight>
=XBMC=
Dumping ground for very XBMC specific operations
==Methods==
===XBMC.GetInfoBooleans===
Retrieve info booleans about XBMC and the system
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'XBMC.GetInfoBooleans',
    'id': undefined /* integer, required */,
    'params': {
        'booleans': [ /* array, required, minimum items: 1 */
            undefined /* string */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'XBMC.GetInfoBooleans',
    'id': undefined /* integer, required */,
    'result': { /* List of key-value pairs of the retrieved info booleans */
       
    }
}
</syntaxhighlight>
===XBMC.GetInfoLabels===
Retrieve info labels about XBMC and the system
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'XBMC.GetInfoLabels',
    'id': undefined /* integer, required */,
    'params': {
        'labels': [ /* array, required, minimum items: 1, See http://wiki.xbmc.org/index.php?title=InfoLabels for a list of possible info labels */
            undefined /* string */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'XBMC.GetInfoLabels',
    'id': undefined /* integer, required */,
     'result': { /* List of key-value pairs of the retrieved info labels */
          
    }
}
</syntaxhighlight>
=GUI=
==Methods==
===GUI.GetProperties===
Retrieves the values of the given properties
====Permissions====
ReadData
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.GetProperties',
    'id': undefined /* integer, required */,
    'params': {
        'properties': [ /* array, required, all items must be unique */
            'currentwindow' /* string, id: GUI.Property.Name */
        ]
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.GetProperties',
    'id': undefined /* integer, required */,
    'result': { /* id: GUI.Property.Value */
        'currentcontrol': {
            'label': undefined /* string, required */
        },
        'currentwindow': {
            'id': undefined /* integer, required */,
            'label': undefined /* string, required */
        },
        'fullscreen': false /* boolean */,
        'skin': {
            'id': undefined /* string, required, minimum length: 1 */,
            'name': '' /* string */
        }
    }
}
</syntaxhighlight>
===GUI.SetFullscreen===
Toggle fullscreen/GUI
====Permissions====
ControlGUI
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.SetFullscreen',
    'id': undefined /* integer, required */,
    'params': {
        'fullscreen': undefined /* boolean */ or undefined /* string */
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.SetFullscreen',
    'id': undefined /* integer, required */,
    'result': undefined /* boolean, Fullscreen state */
}
</syntaxhighlight>
===GUI.ShowNotification===
Shows a GUI notification
====Permissions====
ControlGUI
====Syntax====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.ShowNotification',
    'id': undefined /* integer, required */,
    'params': {
        'title': undefined /* string, required */,
        'message': undefined /* string, required */,
        'image': undefined /* string */ or undefined /* string */,
        'displaytime': 5000 /* integer, minimum: 1500, The time in milliseconds the notification will be visible */
    }
}
</syntaxhighlight>
====Returns====
<syntaxhighlight lang="javascript">
{
    'jsonrpc': '2.0',
    'method': 'GUI.ShowNotification',
    'id': undefined /* integer, required */,
    'result': { /* id: System.Property.Value */
        'canhibernate': false /* boolean */,
        'canreboot': false /* boolean */,
        'canshutdown': false /* boolean */,
        'cansuspend': false /* boolean */
     }
     }
}
}

Revision as of 04:07, 21 June 2012

JSON-RPC Pages
Main JSON-RPC Page
- v8 (Krypton)
- v10 (Leia)
- v12 (Matrix)
- v13 (Nexus)
- v14 (Omega)
Examples
All JSON-RPC Pages

Version 4 is a stable version of XBMC's JSON-RPC API and is published with the release of Eden. It is a complete re-write and re-structuring of version 2 and therefore isn't backwards compatible to it. The main reason for this was the need to make this version fully compatible with all the functionality, features and requirements of the JSON-RPC 2.0 specification. This was a main concern during early development to make it easier for third party developers and applications to interact with XBMC's JSON-RPC API by using existing JSON-RPC libraries.

An rough and incomplete list of changes compared to version 2 can be found here. A more complete and detailed list can be found in the forum.

Documentation (JSON Schema)

Starting with JSON-RPC API version 3 a new way of API documentation has been introduced. All methods and data types are described using JSON Schema. This provides third party developers with an always complete and up-to-date documentation by calling JSONRPC.Introspect even during periods of heavy development. Furthermore the same method and data type specification that can be used by third party developers as a documentation is used by XBMC to check and verify method parameters and their values on every JSON-RPC request and allows to provide detailed error messages in case of a bad or missing parameter.

Supported features of JSON Schema

Schema IETF Draft 03
type Yes
properties Yes
patternProperties No
additionalProperties Yes
items Yes
additionalItems Yes
required Yes
dependencies No
minimum Yes
maximum Yes
Schema IETF Draft 03
exclusiveMinimum Yes
exclusiveMaximum Yes
minItems Yes
maxItems Yes
uniqueItems Yes
pattern No
minLength Yes
maxLength Yes
enum Yes
default Yes
Schema IETF Draft 03
title No
description Yes
format No
divisibleBy Yes
disallow No
extends Yes
id Yes
$ref Yes
$schema No
Hyper Schema No

Error message

If XBMC detects a bad or missing parameter in a JSON-RPC request it returns an error object. The JSON schema description of that error object is

{
  "type": "object",
  "properties": {
    "code": { "type": "integer", "required": true },
    "message": { "type": "string", "required": true },
    "data": { "type": "object",
      "properties": {
        "method": { "type": "string", "required": true },
        "stack": { "type": "object", "id": "Error.Stack",
          "properties": {
            "name": { "type": "string", "required": true },
            "type": { "type": "string", "required": true },
            "message": { "type": "string", "required": true },
            "property": { "$ref": "Error.Stack" }
          }
        }
      }
    }
  }
}

JSONRPC

A variety of standard JSONRPC calls

Methods

JSONRPC.Introspect

Enumerates all actions and descriptions

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Introspect', 
    'id': undefined /* integer, required */, 
    'params': {
        'getdescriptions': true /* boolean */, 
        'getmetadata': false /* boolean */, 
        'filterbytransport': true /* boolean */, 
        'filter': {
            'getreferences': true /* boolean, Whether or not to print the schema for referenced types */, 
            'id': undefined /* string, required, Name of a namespace, method or type */, 
            'type': undefined /* string, required, Type of the given name */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Introspect', 
    'id': undefined /* integer, required */, 
    'result': {
        
    }
}

JSONRPC.NotifyAll

Notify all other connected clients

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.NotifyAll', 
    'id': undefined /* integer, required */, 
    'params': {
        'sender': undefined /* string, required */, 
        'message': undefined /* string, required */, 
        'data': null /* any */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.NotifyAll', 
    'id': undefined /* integer, required */, 
    'result': undefined /* any */
}

JSONRPC.Permission

Retrieve the clients permissions

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Permission', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Permission', 
    'id': undefined /* integer, required */, 
    'result': {
        'controlnotify': undefined /* boolean, required */, 
        'controlplayback': undefined /* boolean, required */, 
        'controlpower': undefined /* boolean, required */, 
        'navigate': undefined /* boolean, required */, 
        'readdata': undefined /* boolean, required */, 
        'removedata': undefined /* boolean, required */, 
        'updatedata': undefined /* boolean, required */, 
        'writefile': undefined /* boolean, required */
    }
}

JSONRPC.Ping

Ping responder

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Ping', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Ping', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

JSONRPC.Version

Retrieve the jsonrpc protocol version

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Version', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'JSONRPC.Version', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player

Manages all available players

Notifications

Player.OnPause

Playback of a media item has been paused. If there is no ID available extra information will be provided.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.OnPause', 
    'params': undefined /* string, required */ or { /* required, id: Player.Notifications.Data */
        'item': { /* An unknown item does not have any additional information. */
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* An item known to the database has an identification. */
            'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A movie item has a title and may have a release year. */
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */, 
            'year': 0 /* integer */
        } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */
            'episode': 0 /* integer */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A music video has a title and may have an album and an artist. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A song has a title and may have an album, an artist and a track number. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'track': 0 /* integer */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        }, 
        'player': { /* required, id: Player.Notifications.Player */
            'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
            'speed': 0 /* integer */
        }
    }
}

Player.OnPlay

Playback of a media item has been started or the playback speed has changed. If there is no ID available extra information will be provided.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.OnPlay', 
    'params': undefined /* string, required */ or { /* required, id: Player.Notifications.Data */
        'item': { /* An unknown item does not have any additional information. */
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* An item known to the database has an identification. */
            'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A movie item has a title and may have a release year. */
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */, 
            'year': 0 /* integer */
        } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */
            'episode': 0 /* integer */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A music video has a title and may have an album and an artist. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A song has a title and may have an album, an artist and a track number. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'track': 0 /* integer */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        }, 
        'player': { /* required, id: Player.Notifications.Player */
            'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
            'speed': 0 /* integer */
        }
    }
}

Player.OnSeek

The playback position has been changed. If there is no ID available extra information will be provided.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.OnSeek', 
    'params': undefined /* string, required */ or { /* required */
        'item': { /* An unknown item does not have any additional information. */
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* An item known to the database has an identification. */
            'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A movie item has a title and may have a release year. */
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */, 
            'year': 0 /* integer */
        } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */
            'episode': 0 /* integer */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A music video has a title and may have an album and an artist. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A song has a title and may have an album, an artist and a track number. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'track': 0 /* integer */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        }, 
        'player': { /* required, id: Player.Notifications.Player.Seek */
            'seekoffset': { /* id: Global.Time, no additional properties allowed */
                'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
                'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
                'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
                'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
            }, 
            'time': { /* id: Global.Time, no additional properties allowed */
                'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
                'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
                'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
                'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
            }, 
            'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
            'speed': 0 /* integer */
        }
    }
}

Player.OnSpeedChanged

Speed of the playback of a media item has been changed. If there is no ID available extra information will be provided.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.OnSpeedChanged', 
    'params': undefined /* string, required */ or { /* required, id: Player.Notifications.Data */
        'item': { /* An unknown item does not have any additional information. */
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* An item known to the database has an identification. */
            'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A movie item has a title and may have a release year. */
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */, 
            'year': 0 /* integer */
        } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */
            'episode': 0 /* integer */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A music video has a title and may have an album and an artist. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A song has a title and may have an album, an artist and a track number. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'track': 0 /* integer */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        }, 
        'player': { /* required, id: Player.Notifications.Player */
            'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
            'speed': 0 /* integer */
        }
    }
}

Player.OnStop

Playback of a media item has been stopped. If there is no ID available extra information will be provided.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.OnStop', 
    'params': undefined /* string, required */ or { /* required */
        'item': { /* An unknown item does not have any additional information. */
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* An item known to the database has an identification. */
            'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A movie item has a title and may have a release year. */
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */, 
            'year': 0 /* integer */
        } or { /* A tv episode has a title and may have an episode number, season number and the title of the show it belongs to. */
            'episode': 0 /* integer */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A music video has a title and may have an album and an artist. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        } or { /* A song has a title and may have an album, an artist and a track number. */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'title': undefined /* string, required */, 
            'track': 0 /* integer */, 
            'type': 'unknown' /* string, required, id: Player.Notifications.Item.Type */
        }
    }
}

Methods

Player.GetActivePlayers

Returns all active players

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetActivePlayers', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetActivePlayers', 
    'id': undefined /* integer, required */, 
    'result': [ /* array, all items must be unique */
        {
            'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
            'type': 'video' /* string, required, id: Player.Type */
        }
    ]
}

Player.GetItem

Retrieves the currently played item

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetItem', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'properties': [ /* id: List.Fields.All */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetItem', 
    'id': undefined /* integer, required */, 
    'result': {
        'item': { /* required, id: List.Item.All */
            'album': '' /* string */, 
            'albumartist': '' /* string */, 
            'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'cast': [ /* array, id: Video.Cast */
                { /* no additional properties allowed */
                    'name': undefined /* string, required */, 
                    'role': undefined /* string, required */, 
                    'thumbnail': '' /* string */
                }
            ], 
            'comment': '' /* string */, 
            'country': '' /* string */, 
            'duration': 0 /* integer */, 
            'episode': 0 /* integer */, 
            'firstaired': '' /* string */, 
            'id': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'imdbnumber': '' /* string */, 
            'lyrics': '' /* string */, 
            'mpaa': '' /* string */, 
            'musicbrainzartistid': '' /* string */, 
            'musicbrainztrackid': '' /* string */, 
            'originaltitle': '' /* string */, 
            'plotoutline': '' /* string */, 
            'premiered': '' /* string */, 
            'productioncode': '' /* string */, 
            'season': 0 /* integer */, 
            'set': [ /* array, id: Array.String */
                undefined /* string, minimum length: 1 */
            ], 
            'setid': [ /* array, id: Array.Integer */
                undefined /* integer */
            ], 
            'showlink': '' /* string */, 
            'showtitle': '' /* string */, 
            'studio': '' /* string */, 
            'tagline': '' /* string */, 
            'top250': 0 /* integer */, 
            'track': 0 /* integer */, 
            'trailer': '' /* string */, 
            'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'type': 'unknown' /* string */, 
            'votes': '' /* string */, 
            'writer': '' /* string */, 
            'director': '' /* string */, 
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */, 
                'total': 0 /* number, minimum: 0 */
            }, 
            'runtime': '' /* string */, 
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                'audio': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'channels': 0 /* integer */, 
                        'codec': '' /* string */, 
                        'language': '' /* string */
                    }
                ], 
                'subtitle': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'language': '' /* string */
                    }
                ], 
                'video': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'aspect': 0 /* number */, 
                        'codec': '' /* string */, 
                        'duration': 0 /* integer */, 
                        'height': 0 /* integer */, 
                        'width': 0 /* integer */
                    }
                ]
            }, 
            'file': '' /* string */, 
            'lastplayed': '' /* string */, 
            'plot': '' /* string */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */, 
            'artist': '' /* string */, 
            'musicbrainzalbumartistid': '' /* string */, 
            'musicbrainzalbumid': '' /* string */, 
            'rating': 0 /* integer */, 
            'year': 0 /* integer */, 
            'genre': '' /* string */
        }
    }
}

Player.GetProperties

Retrieves the values of the given properties

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetProperties', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'properties': [ /* array, required, all items must be unique */
            'type' /* string, id: Player.Property.Name */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GetProperties', 
    'id': undefined /* integer, required */, 
    'result': { /* id: Player.Property.Value */
        'audiostreams': [ /* array */
            { /* id: Player.Audio.Stream */
                'index': undefined /* integer, required, minimum: 0 */, 
                'language': undefined /* string, required */, 
                'name': undefined /* string, required */
            }
        ], 
        'canchangespeed': false /* boolean */, 
        'canmove': false /* boolean */, 
        'canrepeat': false /* boolean */, 
        'canrotate': false /* boolean */, 
        'canseek': false /* boolean */, 
        'canshuffle': false /* boolean */, 
        'canzoom': false /* boolean */, 
        'currentaudiostream': { /* id: Player.Audio.Stream.Extended */
            'bitrate': undefined /* integer, required */, 
            'channels': undefined /* integer, required */, 
            'codec': undefined /* string, required */, 
            'index': undefined /* integer, required, minimum: 0 */, 
            'language': undefined /* string, required */, 
            'name': undefined /* string, required */
        }, 
        'currentsubtitle': { /* id: Player.Subtitle */
            'index': undefined /* integer, required, minimum: 0 */, 
            'language': undefined /* string, required */, 
            'name': undefined /* string, required */
        }, 
        'partymode': false /* boolean */, 
        'percentage': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100 */, 
        'playlistid': -1 /* integer, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'position': -1 /* integer, id: Playlist.Position, minimum: 0 */, 
        'repeat': 'off' /* string, id: Player.Repeat */, 
        'shuffled': false /* boolean */, 
        'speed': 0 /* integer */, 
        'subtitleenabled': false /* boolean */, 
        'subtitles': [ /* array */
            { /* id: Player.Subtitle */
                'index': undefined /* integer, required, minimum: 0 */, 
                'language': undefined /* string, required */, 
                'name': undefined /* string, required */
            }
        ], 
        'time': { /* id: Global.Time, no additional properties allowed */
            'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
            'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
            'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
            'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
        }, 
        'totaltime': { /* id: Global.Time, no additional properties allowed */
            'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
            'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
            'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
            'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
        }, 
        'type': 'video' /* string, id: Player.Type */
    }
}

Player.GoNext

Go to next item on the playlist

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoNext', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoNext', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.GoPrevious

Go to previous item on the playlist

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoPrevious', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoPrevious', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.GoTo

Go to item at the given position in the playlist

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoTo', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'position': -1 /* integer, required, id: Playlist.Position, minimum: 0 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.GoTo', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.MoveDown

If picture is zoomed move viewport down

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveDown', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveDown', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.MoveLeft

If picture is zoomed move viewport left otherwise skip previous

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveLeft', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveLeft', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.MoveRight

If picture is zoomed move viewport right otherwise skip next

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveRight', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveRight', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.MoveUp

If picture is zoomed move viewport up

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveUp', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.MoveUp', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Open

Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database.

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Open', 
    'id': undefined /* integer, required */, 
    'params': {
        'item': { /* no additional properties allowed */
            'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
            'position': -1 /* integer, id: Playlist.Position, minimum: 0 */
        } or { /* no additional properties allowed */
            'file': undefined /* string, required, Path to a file (not a directory) to be added to the playlist */
        } or { /* no additional properties allowed */
            'directory': undefined /* string, required */
        } or { /* no additional properties allowed */
            'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'genreid': -1 /* integer, required, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */
        } or { /* no additional properties allowed */
            'path': undefined /* string, required */, 
            'random': true /* boolean */, 
            'recursive': true /* boolean */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Open', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.PlayPause

Pauses or unpause playback and returns the new state

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.PlayPause', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.PlayPause', 
    'id': undefined /* integer, required */, 
    'result': { /* required, id: Player.Speed */
        'speed': 0 /* integer */
    }
}

Player.Repeat

Set the repeat mode of the player

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Repeat', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'state': 'off' /* string, required, id: Player.Repeat */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Repeat', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Rotate

Rotates current picture

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Rotate', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Rotate', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Seek

Seek through the playing item

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Seek', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'value': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100, Percentage value to seek to */ or { /* no additional properties allowed, Time to seek to */
            'hours': 0 /* integer, minimum: 0, maximum: 23 */, 
            'milliseconds': 0 /* integer, minimum: 0, maximum: 999 */, 
            'minutes': 0 /* integer, minimum: 0, maximum: 59 */, 
            'seconds': 0 /* integer, minimum: 0, maximum: 59 */
        } or undefined /* string, Seek by predefined jumps */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Seek', 
    'id': undefined /* integer, required */, 
    'result': {
        'percentage': 0 /* number, id: Player.Position.Percentage, minimum: 0, maximum: 100 */, 
        'time': { /* id: Global.Time, no additional properties allowed */
            'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
            'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
            'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
            'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
        }, 
        'totaltime': { /* id: Global.Time, no additional properties allowed */
            'hours': undefined /* integer, required, minimum: 0, maximum: 23 */, 
            'milliseconds': undefined /* integer, required, minimum: 0, maximum: 999 */, 
            'minutes': undefined /* integer, required, minimum: 0, maximum: 59 */, 
            'seconds': undefined /* integer, required, minimum: 0, maximum: 59 */
        }
    }
}

Player.SetAudioStream

Set the audio stream played by the player

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetAudioStream', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'stream': undefined /* string */ or undefined /* integer, minimum: 0, Index of the audio stream to play */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetAudioStream', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.SetSpeed

Set the speed of the current playback

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetSpeed', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'speed': undefined /* integer */ or undefined /* string */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetSpeed', 
    'id': undefined /* integer, required */, 
    'result': { /* required, id: Player.Speed */
        'speed': 0 /* integer */
    }
}

Player.SetSubtitle

Set the subtitle displayed by the player

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetSubtitle', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'subtitle': undefined /* string */ or undefined /* integer, minimum: 0, Index of the subtitle to display */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.SetSubtitle', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Shuffle

Shuffle items in the player

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Shuffle', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Shuffle', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Stop

Stops playback

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Stop', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Stop', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.UnShuffle

Unshuffle items in the player

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.UnShuffle', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.UnShuffle', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.Zoom

Zooms current picture

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.Zoom', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */, 
        'value': undefined /* integer, required, minimum: 1, maximum: 10, Zoom level */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.Zoom', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.ZoomIn

Zoom in once

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.ZoomIn', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.ZoomIn', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Player.ZoomOut

Zoom out once

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Player.ZoomOut', 
    'id': undefined /* integer, required */, 
    'params': {
        'playerid': -1 /* integer, required, id: Player.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Player.ZoomOut', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Playlist

Playlist modification

Methods

Playlist.Add

Add item(s) to playlist

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Add', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'item': { /* no additional properties allowed */
            'file': undefined /* string, required, Path to a file (not a directory) to be added to the playlist */
        } or { /* no additional properties allowed */
            'directory': undefined /* string, required */
        } or { /* no additional properties allowed */
            'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'genreid': -1 /* integer, required, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Add', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Playlist.Clear

Clear playlist

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Clear', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Clear', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Playlist.GetItems

Get all items from playlist

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetItems', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'properties': [ /* id: List.Fields.All */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetItems', 
    'id': undefined /* integer, required */, 
    'result': {
        'items': [ /* array, required */
            { /* id: List.Item.All */
                'album': '' /* string */, 
                'albumartist': '' /* string */, 
                'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'comment': '' /* string */, 
                'country': '' /* string */, 
                'duration': 0 /* integer */, 
                'episode': 0 /* integer */, 
                'firstaired': '' /* string */, 
                'id': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'imdbnumber': '' /* string */, 
                'lyrics': '' /* string */, 
                'mpaa': '' /* string */, 
                'musicbrainzartistid': '' /* string */, 
                'musicbrainztrackid': '' /* string */, 
                'originaltitle': '' /* string */, 
                'plotoutline': '' /* string */, 
                'premiered': '' /* string */, 
                'productioncode': '' /* string */, 
                'season': 0 /* integer */, 
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ], 
                'setid': [ /* array, id: Array.Integer */
                    undefined /* integer */
                ], 
                'showlink': '' /* string */, 
                'showtitle': '' /* string */, 
                'studio': '' /* string */, 
                'tagline': '' /* string */, 
                'top250': 0 /* integer */, 
                'track': 0 /* integer */, 
                'trailer': '' /* string */, 
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'type': 'unknown' /* string */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

Playlist.GetPlaylists

Returns all existing playlists

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetPlaylists', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetPlaylists', 
    'id': undefined /* integer, required */, 
    'result': [ /* array, all items must be unique */
        {
            'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
            'type': 'unknown' /* string, required, id: Playlist.Type */
        }
    ]
}

Playlist.GetProperties

Retrieves the values of the given properties

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetProperties', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'properties': [ /* array, required, all items must be unique */
            'type' /* string, id: Playlist.Property.Name */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.GetProperties', 
    'id': undefined /* integer, required */, 
    'result': { /* id: Playlist.Property.Value */
        'size': 0 /* integer, minimum: 0 */, 
        'type': 'unknown' /* string, id: Playlist.Type */
    }
}

Playlist.Insert

Insert item(s) into playlist. Does not work for picture playlists (aka slideshows).

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Insert', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'position': -1 /* integer, required, id: Playlist.Position, minimum: 0 */, 
        'item': { /* no additional properties allowed */
            'file': undefined /* string, required, Path to a file (not a directory) to be added to the playlist */
        } or { /* no additional properties allowed */
            'directory': undefined /* string, required */
        } or { /* no additional properties allowed */
            'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */
        } or { /* no additional properties allowed */
            'genreid': -1 /* integer, required, id: Library.Id, minimum: 1, Identification of a genre from the AudioLibrary */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Insert', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Playlist.Remove

Remove item from playlist. Does not work for picture playlists (aka slideshows).

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Remove', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'position': -1 /* integer, required, id: Playlist.Position, minimum: 0 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Remove', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Playlist.Swap

Swap items in the playlist. Does not work for picture playlists (aka slideshows).

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Swap', 
    'id': undefined /* integer, required */, 
    'params': {
        'playlistid': -1 /* integer, required, id: Playlist.Id, minimum: 0, maximum: 2 */, 
        'position1': -1 /* integer, required, id: Playlist.Position, minimum: 0 */, 
        'position2': -1 /* integer, required, id: Playlist.Position, minimum: 0 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Playlist.Swap', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Files

Shares information

Methods

Files.GetDirectory

Get the directories and files in the given directory

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Files.GetDirectory', 
    'id': undefined /* integer, required */, 
    'params': {
        'directory': undefined /* string, required */, 
        'media': 'video' /* string, id: Files.Media */, 
        'properties': [ /* id: List.Fields.All */
            undefined /* string */
        ], 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Files.GetDirectory', 
    'id': undefined /* integer, required */, 
    'result': {
        'files': [ /* array, required */
            { /* id: List.Item.File */
                'file': '' /* string */, 
                'filetype': undefined /* string, required */, 
                'album': '' /* string */, 
                'albumartist': '' /* string */, 
                'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'comment': '' /* string */, 
                'country': '' /* string */, 
                'duration': 0 /* integer */, 
                'episode': 0 /* integer */, 
                'firstaired': '' /* string */, 
                'id': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'imdbnumber': '' /* string */, 
                'lyrics': '' /* string */, 
                'mpaa': '' /* string */, 
                'musicbrainzartistid': '' /* string */, 
                'musicbrainztrackid': '' /* string */, 
                'originaltitle': '' /* string */, 
                'plotoutline': '' /* string */, 
                'premiered': '' /* string */, 
                'productioncode': '' /* string */, 
                'season': 0 /* integer */, 
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ], 
                'setid': [ /* array, id: Array.Integer */
                    undefined /* integer */
                ], 
                'showlink': '' /* string */, 
                'showtitle': '' /* string */, 
                'studio': '' /* string */, 
                'tagline': '' /* string */, 
                'top250': 0 /* integer */, 
                'track': 0 /* integer */, 
                'trailer': '' /* string */, 
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'type': 'unknown' /* string */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

Files.GetSources

Get the sources of the media windows

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Files.GetSources', 
    'id': undefined /* integer, required */, 
    'params': {
        'media': 'video' /* string, required, id: Files.Media */, 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Files.GetSources', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'sources': [ /* array, required, id: List.Items.Sources */
            {
                'file': undefined /* string, required */
            }
        ]
    }
}

Files.PrepareDownload

Provides a way to download a given file (e.g. providing an URL to the real file location)

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Files.PrepareDownload', 
    'id': undefined /* integer, required */, 
    'params': {
        'path': undefined /* string, required */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Files.PrepareDownload', 
    'id': undefined /* integer, required */, 
    'result': {
        'details': undefined /* any, required, Transport specific details on how/from where to download the given file */, 
        'mode': undefined /* string, required, Direct mode allows using Files.Download whereas redirect mode requires the usage of a different protocol */, 
        'protocol': undefined /* string, required */
    }
}

AudioLibrary

Audio Library information

Notifications

AudioLibrary.OnRemove

An audio item has been removed.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.OnRemove', 
    'params': undefined /* string, required */ or { /* required */
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'type': undefined /* required */
    }
}

AudioLibrary.OnUpdate

An audio item has been updated.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.OnUpdate', 
    'params': undefined /* string, required */ or { /* required */
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'type': undefined /* string ('song'), required, id: Notifications.Library.Audio.Type */
    }
}

Methods

AudioLibrary.Clean

Cleans the audio library from non-existent items

Permissions

RemoveData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Clean', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Clean', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

AudioLibrary.Export

Exports all items from the audio library

Permissions

WriteFile

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Export', 
    'id': undefined /* integer, required */, 
    'params': {
        'options': { /* no additional properties allowed */
            'path': undefined /* string, required, minimum length: 1, Path to the directory to where the data should be exported */
        } or { /* no additional properties allowed */
            'images': false /* boolean, Whether to export thumbnails and fanart images */, 
            'overwrite': false /* boolean, Whether to overwrite existing exported files */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Export', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

AudioLibrary.GetAlbumDetails

Retrieve details about a specific album

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetAlbumDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Album */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetAlbumDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'albumdetails': { /* id: Audio.Details.Album */
            'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'albumlabel': '' /* string */, 
            'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'description': '' /* string */, 
            'mood': '' /* string */, 
            'style': '' /* string */, 
            'theme': '' /* string */, 
            'type': '' /* string */, 
            'artist': '' /* string */, 
            'musicbrainzalbumartistid': '' /* string */, 
            'musicbrainzalbumid': '' /* string */, 
            'rating': 0 /* integer */, 
            'title': '' /* string */, 
            'year': 0 /* integer */, 
            'genre': '' /* string */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

AudioLibrary.GetAlbums

Retrieve all albums from specified artist or genre

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetAlbums', 
    'id': undefined /* integer, required */, 
    'params': {
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Album */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetAlbums', 
    'id': undefined /* integer, required */, 
    'result': {
        'albums': [ /* array */
            { /* id: Audio.Details.Album */
                'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'albumlabel': '' /* string */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'description': '' /* string */, 
                'mood': '' /* string */, 
                'style': '' /* string */, 
                'theme': '' /* string */, 
                'type': '' /* string */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'title': '' /* string */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

AudioLibrary.GetArtistDetails

Retrieve details about a specific artist

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetArtistDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Artist */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetArtistDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'artistdetails': { /* id: Audio.Details.Artist */
            'artist': undefined /* string, required */, 
            'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'born': '' /* string */, 
            'description': '' /* string */, 
            'died': '' /* string */, 
            'disbanded': '' /* string */, 
            'formed': '' /* string */, 
            'instrument': '' /* string */, 
            'mood': '' /* string */, 
            'musicbrainzartistid': '' /* string */, 
            'style': '' /* string */, 
            'yearsactive': '' /* string */, 
            'genre': '' /* string */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

AudioLibrary.GetArtists

Retrieve all artists

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetArtists', 
    'id': undefined /* integer, required */, 
    'params': {
        'albumartistsonly': undefined /* null */ or undefined /* boolean */, 
        'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Artist */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetArtists', 
    'id': undefined /* integer, required */, 
    'result': {
        'artists': [ /* array */
            { /* id: Audio.Details.Artist */
                'artist': undefined /* string, required */, 
                'artistid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'born': '' /* string */, 
                'description': '' /* string */, 
                'died': '' /* string */, 
                'disbanded': '' /* string */, 
                'formed': '' /* string */, 
                'instrument': '' /* string */, 
                'mood': '' /* string */, 
                'musicbrainzartistid': '' /* string */, 
                'style': '' /* string */, 
                'yearsactive': '' /* string */, 
                'genre': '' /* string */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

AudioLibrary.GetGenres

Retrieve all genres

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetGenres', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Library.Fields.Genre */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetGenres', 
    'id': undefined /* integer, required */, 
    'result': {
        'genres': [ /* array, required */
            { /* id: Library.Details.Genre */
                'genreid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'thumbnail': '' /* string */, 
                'title': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

AudioLibrary.GetRecentlyAddedAlbums

Retrieve recently added albums

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetRecentlyAddedAlbums', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Audio.Fields.Album */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetRecentlyAddedAlbums', 
    'id': undefined /* integer, required */, 
    'result': {
        'albums': [ /* array */
            { /* id: Audio.Details.Album */
                'albumid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'albumlabel': '' /* string */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'description': '' /* string */, 
                'mood': '' /* string */, 
                'style': '' /* string */, 
                'theme': '' /* string */, 
                'type': '' /* string */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'title': '' /* string */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

AudioLibrary.GetRecentlyAddedSongs

Retrieve recently added songs

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetRecentlyAddedSongs', 
    'id': undefined /* integer, required */, 
    'params': {
        'albumlimit': -1 /* integer, id: List.Amount, minimum: 0, The amount of recently added albums from which to return the songs */, 
        'properties': [ /* id: Audio.Fields.Song */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetRecentlyAddedSongs', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'songs': [ /* array */
            { /* id: Audio.Details.Song */
                'album': '' /* string */, 
                'albumartist': '' /* string */, 
                'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'comment': '' /* string */, 
                'duration': 0 /* integer */, 
                'file': '' /* string */, 
                'lyrics': '' /* string */, 
                'musicbrainzartistid': '' /* string */, 
                'musicbrainztrackid': '' /* string */, 
                'playcount': 0 /* integer */, 
                'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'track': 0 /* integer */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'title': '' /* string */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

AudioLibrary.GetSongDetails

Retrieve details about a specific song

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetSongDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Song */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetSongDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'songdetails': { /* id: Audio.Details.Song */
            'album': '' /* string */, 
            'albumartist': '' /* string */, 
            'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'comment': '' /* string */, 
            'duration': 0 /* integer */, 
            'file': '' /* string */, 
            'lyrics': '' /* string */, 
            'musicbrainzartistid': '' /* string */, 
            'musicbrainztrackid': '' /* string */, 
            'playcount': 0 /* integer */, 
            'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'track': 0 /* integer */, 
            'artist': '' /* string */, 
            'musicbrainzalbumartistid': '' /* string */, 
            'musicbrainzalbumid': '' /* string */, 
            'rating': 0 /* integer */, 
            'title': '' /* string */, 
            'year': 0 /* integer */, 
            'genre': '' /* string */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

AudioLibrary.GetSongs

Retrieve all songs from specified album, artist or genre

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetSongs', 
    'id': undefined /* integer, required */, 
    'params': {
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'genreid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Audio.Fields.Song */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.GetSongs', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'songs': [ /* array */
            { /* id: Audio.Details.Song */
                'album': '' /* string */, 
                'albumartist': '' /* string */, 
                'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'comment': '' /* string */, 
                'duration': 0 /* integer */, 
                'file': '' /* string */, 
                'lyrics': '' /* string */, 
                'musicbrainzartistid': '' /* string */, 
                'musicbrainztrackid': '' /* string */, 
                'playcount': 0 /* integer */, 
                'songid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'track': 0 /* integer */, 
                'artist': '' /* string */, 
                'musicbrainzalbumartistid': '' /* string */, 
                'musicbrainzalbumid': '' /* string */, 
                'rating': 0 /* integer */, 
                'title': '' /* string */, 
                'year': 0 /* integer */, 
                'genre': '' /* string */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

AudioLibrary.Scan

Scans the audio sources for new library items

Permissions

UpdateData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Scan', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'AudioLibrary.Scan', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

VideoLibrary

Video Library information

Notifications

VideoLibrary.OnRemove

A video item has been removed.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.OnRemove', 
    'params': undefined /* string, required */ or { /* required */
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'type': undefined /* required */
    }
}

VideoLibrary.OnUpdate

A video item has been updated.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.OnUpdate', 
    'params': undefined /* string, required */ or { /* required */
        'id': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'playcount': -1 /* integer, minimum: 0 */, 
        'type': undefined /* string ('movie', 'tvshow', 'episode', 'musicvideo'), required, id: Notifications.Library.Video.Type */
    }
}

Methods

VideoLibrary.Clean

Cleans the video library from non-existent items

Permissions

RemoveData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Clean', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Clean', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

VideoLibrary.Export

Exports all items from the video library

Permissions

WriteFile

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Export', 
    'id': undefined /* integer, required */, 
    'params': {
        'options': { /* no additional properties allowed */
            'path': undefined /* string, required, minimum length: 1, Path to the directory to where the data should be exported */
        } or { /* no additional properties allowed */
            'actorthumbs': false /* boolean, Whether to export actor thumbnails */, 
            'images': false /* boolean, Whether to export thumbnails and fanart images */, 
            'overwrite': false /* boolean, Whether to overwrite existing exported files */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Export', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

VideoLibrary.GetEpisodeDetails

Retrieve details about a specific tv show episode

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetEpisodeDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.Episode */
            undefined /* string, Requesting the cast and/or resume field will result in increased response times */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetEpisodeDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'episodedetails': { /* id: Video.Details.Episode */
            'cast': [ /* array, id: Video.Cast */
                { /* no additional properties allowed */
                    'name': undefined /* string, required */, 
                    'role': undefined /* string, required */, 
                    'thumbnail': '' /* string */
                }
            ], 
            'episode': 0 /* integer */, 
            'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'firstaired': '' /* string */, 
            'originaltitle': '' /* string */, 
            'productioncode': '' /* string */, 
            'rating': 0 /* number */, 
            'season': 0 /* integer */, 
            'showtitle': '' /* string */, 
            'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
            'votes': '' /* string */, 
            'writer': '' /* string */, 
            'director': '' /* string */, 
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */, 
                'total': 0 /* number, minimum: 0 */
            }, 
            'runtime': '' /* string */, 
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                'audio': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'channels': 0 /* integer */, 
                        'codec': '' /* string */, 
                        'language': '' /* string */
                    }
                ], 
                'subtitle': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'language': '' /* string */
                    }
                ], 
                'video': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'aspect': 0 /* number */, 
                        'codec': '' /* string */, 
                        'duration': 0 /* integer */, 
                        'height': 0 /* integer */, 
                        'width': 0 /* integer */
                    }
                ]
            }, 
            'file': '' /* string */, 
            'lastplayed': '' /* string */, 
            'plot': '' /* string */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

VideoLibrary.GetEpisodes

Retrieve all tv show episodes

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetEpisodes', 
    'id': undefined /* integer, required */, 
    'params': {
        'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'season': -1 /* integer, minimum: 0 */, 
        'properties': [ /* id: Video.Fields.Episode */
            undefined /* string, Requesting the cast and/or resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetEpisodes', 
    'id': undefined /* integer, required */, 
    'result': {
        'episodes': [ /* array */
            { /* id: Video.Details.Episode */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'episode': 0 /* integer */, 
                'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'firstaired': '' /* string */, 
                'originaltitle': '' /* string */, 
                'productioncode': '' /* string */, 
                'rating': 0 /* number */, 
                'season': 0 /* integer */, 
                'showtitle': '' /* string */, 
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

VideoLibrary.GetGenres

Retrieve all genres

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetGenres', 
    'id': undefined /* integer, required */, 
    'params': {
        'type': undefined /* string, required */, 
        'properties': [ /* id: Library.Fields.Genre */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetGenres', 
    'id': undefined /* integer, required */, 
    'result': {
        'genres': [ /* array, required */
            { /* id: Library.Details.Genre */
                'genreid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'thumbnail': '' /* string */, 
                'title': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

VideoLibrary.GetMovieDetails

Retrieve details about a specific movie

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.Movie */
            undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'moviedetails': { /* id: Video.Details.Movie */
            'cast': [ /* array, id: Video.Cast */
                { /* no additional properties allowed */
                    'name': undefined /* string, required */, 
                    'role': undefined /* string, required */, 
                    'thumbnail': '' /* string */
                }
            ], 
            'country': '' /* string */, 
            'genre': '' /* string */, 
            'imdbnumber': '' /* string */, 
            'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'mpaa': '' /* string */, 
            'originaltitle': '' /* string */, 
            'plotoutline': '' /* string */, 
            'premiered': '' /* string */, 
            'productioncode': '' /* string */, 
            'rating': 0 /* number */, 
            'set': [ /* array, id: Array.String */
                undefined /* string, minimum length: 1 */
            ], 
            'setid': [ /* array, id: Array.Integer */
                undefined /* integer */
            ], 
            'showlink': '' /* string */, 
            'sorttitle': '' /* string */, 
            'studio': '' /* string */, 
            'tagline': '' /* string */, 
            'top250': 0 /* integer */, 
            'trailer': '' /* string */, 
            'votes': '' /* string */, 
            'writer': '' /* string */, 
            'year': 0 /* integer */, 
            'director': '' /* string */, 
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */, 
                'total': 0 /* number, minimum: 0 */
            }, 
            'runtime': '' /* string */, 
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                'audio': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'channels': 0 /* integer */, 
                        'codec': '' /* string */, 
                        'language': '' /* string */
                    }
                ], 
                'subtitle': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'language': '' /* string */
                    }
                ], 
                'video': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'aspect': 0 /* number */, 
                        'codec': '' /* string */, 
                        'duration': 0 /* integer */, 
                        'height': 0 /* integer */, 
                        'width': 0 /* integer */
                    }
                ]
            }, 
            'file': '' /* string */, 
            'lastplayed': '' /* string */, 
            'plot': '' /* string */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

VideoLibrary.GetMovieSetDetails

Retrieve details about a specific movie set

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieSetDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.MovieSet */
            undefined /* string */
        ], 
        'movies': {
            'limits': { /* id: List.Limits, no additional properties allowed */
                'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
                'start': 0 /* integer, minimum: 0 */
            }, 
            'properties': [ /* id: Video.Fields.Movie */
                undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
            ], 
            'sort': { /* id: List.Sort */
                'ignorearticle': false /* boolean */, 
                'method': 'none' /* string */, 
                'order': 'ascending' /* string */
            }
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieSetDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'setdetails': { /* id: Video.Details.MovieSet.Extended */
            'movies': [ /* array */
                { /* id: Video.Details.Movie */
                    'cast': [ /* array, id: Video.Cast */
                        { /* no additional properties allowed */
                            'name': undefined /* string, required */, 
                            'role': undefined /* string, required */, 
                            'thumbnail': '' /* string */
                        }
                    ], 
                    'country': '' /* string */, 
                    'genre': '' /* string */, 
                    'imdbnumber': '' /* string */, 
                    'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                    'mpaa': '' /* string */, 
                    'originaltitle': '' /* string */, 
                    'plotoutline': '' /* string */, 
                    'premiered': '' /* string */, 
                    'productioncode': '' /* string */, 
                    'rating': 0 /* number */, 
                    'set': [ /* array, id: Array.String */
                        undefined /* string, minimum length: 1 */
                    ], 
                    'setid': [ /* array, id: Array.Integer */
                        undefined /* integer */
                    ], 
                    'showlink': '' /* string */, 
                    'sorttitle': '' /* string */, 
                    'studio': '' /* string */, 
                    'tagline': '' /* string */, 
                    'top250': 0 /* integer */, 
                    'trailer': '' /* string */, 
                    'votes': '' /* string */, 
                    'writer': '' /* string */, 
                    'year': 0 /* integer */, 
                    'director': '' /* string */, 
                    'resume': { /* id: Video.Resume, no additional properties allowed */
                        'position': 0 /* number, minimum: 0 */, 
                        'total': 0 /* number, minimum: 0 */
                    }, 
                    'runtime': '' /* string */, 
                    'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                        'audio': [ /* array, minimum items: 1 */
                            { /* no additional properties allowed */
                                'channels': 0 /* integer */, 
                                'codec': '' /* string */, 
                                'language': '' /* string */
                            }
                        ], 
                        'subtitle': [ /* array, minimum items: 1 */
                            { /* no additional properties allowed */
                                'language': '' /* string */
                            }
                        ], 
                        'video': [ /* array, minimum items: 1 */
                            { /* no additional properties allowed */
                                'aspect': 0 /* number */, 
                                'codec': '' /* string */, 
                                'duration': 0 /* integer */, 
                                'height': 0 /* integer */, 
                                'width': 0 /* integer */
                            }
                        ]
                    }, 
                    'file': '' /* string */, 
                    'lastplayed': '' /* string */, 
                    'plot': '' /* string */, 
                    'title': '' /* string */, 
                    'playcount': 0 /* integer */, 
                    'fanart': '' /* string */, 
                    'thumbnail': '' /* string */, 
                    'label': undefined /* string, required */
                }
            ], 
            'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

VideoLibrary.GetMovieSets

Retrieve all movie sets

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieSets', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.MovieSet */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovieSets', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'sets': [ /* array */
            { /* id: Video.Details.MovieSet */
                'setid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetMovies

Retrieve all movies

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovies', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.Movie */
            undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMovies', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'movies': [ /* array */
            { /* id: Video.Details.Movie */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'country': '' /* string */, 
                'genre': '' /* string */, 
                'imdbnumber': '' /* string */, 
                'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'mpaa': '' /* string */, 
                'originaltitle': '' /* string */, 
                'plotoutline': '' /* string */, 
                'premiered': '' /* string */, 
                'productioncode': '' /* string */, 
                'rating': 0 /* number */, 
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ], 
                'setid': [ /* array, id: Array.Integer */
                    undefined /* integer */
                ], 
                'showlink': '' /* string */, 
                'sorttitle': '' /* string */, 
                'studio': '' /* string */, 
                'tagline': '' /* string */, 
                'top250': 0 /* integer */, 
                'trailer': '' /* string */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'year': 0 /* integer */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetMusicVideoDetails

Retrieve details about a specific music video

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMusicVideoDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.MusicVideo */
            undefined /* string, Requesting the resume field will result in increased response times */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMusicVideoDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'musicvideodetails': { /* id: Video.Details.MusicVideo */
            'album': '' /* string */, 
            'artist': '' /* string */, 
            'genre': '' /* string */, 
            'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'studio': '' /* string */, 
            'track': 0 /* integer */, 
            'year': 0 /* integer */, 
            'director': '' /* string */, 
            'resume': { /* id: Video.Resume, no additional properties allowed */
                'position': 0 /* number, minimum: 0 */, 
                'total': 0 /* number, minimum: 0 */
            }, 
            'runtime': '' /* string */, 
            'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                'audio': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'channels': 0 /* integer */, 
                        'codec': '' /* string */, 
                        'language': '' /* string */
                    }
                ], 
                'subtitle': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'language': '' /* string */
                    }
                ], 
                'video': [ /* array, minimum items: 1 */
                    { /* no additional properties allowed */
                        'aspect': 0 /* number */, 
                        'codec': '' /* string */, 
                        'duration': 0 /* integer */, 
                        'height': 0 /* integer */, 
                        'width': 0 /* integer */
                    }
                ]
            }, 
            'file': '' /* string */, 
            'lastplayed': '' /* string */, 
            'plot': '' /* string */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

VideoLibrary.GetMusicVideos

Retrieve all music videos

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMusicVideos', 
    'id': undefined /* integer, required */, 
    'params': {
        'artistid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'albumid': -1 /* integer, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.MusicVideo */
            undefined /* string, Requesting the resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetMusicVideos', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'musicvideos': [ /* array */
            { /* id: Video.Details.MusicVideo */
                'album': '' /* string */, 
                'artist': '' /* string */, 
                'genre': '' /* string */, 
                'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'studio': '' /* string */, 
                'track': 0 /* integer */, 
                'year': 0 /* integer */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetRecentlyAddedEpisodes

Retrieve all recently added tv episodes

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedEpisodes', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.Episode */
            undefined /* string, Requesting the cast and/or resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedEpisodes', 
    'id': undefined /* integer, required */, 
    'result': {
        'episodes': [ /* array */
            { /* id: Video.Details.Episode */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'episode': 0 /* integer */, 
                'episodeid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'firstaired': '' /* string */, 
                'originaltitle': '' /* string */, 
                'productioncode': '' /* string */, 
                'rating': 0 /* number */, 
                'season': 0 /* integer */, 
                'showtitle': '' /* string */, 
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ], 
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }
    }
}

VideoLibrary.GetRecentlyAddedMovies

Retrieve all recently added movies

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedMovies', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.Movie */
            undefined /* string, Requesting the cast, set, showling and/or resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedMovies', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'movies': [ /* array */
            { /* id: Video.Details.Movie */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'country': '' /* string */, 
                'genre': '' /* string */, 
                'imdbnumber': '' /* string */, 
                'movieid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'mpaa': '' /* string */, 
                'originaltitle': '' /* string */, 
                'plotoutline': '' /* string */, 
                'premiered': '' /* string */, 
                'productioncode': '' /* string */, 
                'rating': 0 /* number */, 
                'set': [ /* array, id: Array.String */
                    undefined /* string, minimum length: 1 */
                ], 
                'setid': [ /* array, id: Array.Integer */
                    undefined /* integer */
                ], 
                'showlink': '' /* string */, 
                'sorttitle': '' /* string */, 
                'studio': '' /* string */, 
                'tagline': '' /* string */, 
                'top250': 0 /* integer */, 
                'trailer': '' /* string */, 
                'votes': '' /* string */, 
                'writer': '' /* string */, 
                'year': 0 /* integer */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetRecentlyAddedMusicVideos

Retrieve all recently added music videos

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedMusicVideos', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.MusicVideo */
            undefined /* string, Requesting the resume field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetRecentlyAddedMusicVideos', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'musicvideos': [ /* array */
            { /* id: Video.Details.MusicVideo */
                'album': '' /* string */, 
                'artist': '' /* string */, 
                'genre': '' /* string */, 
                'musicvideoid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'studio': '' /* string */, 
                'track': 0 /* integer */, 
                'year': 0 /* integer */, 
                'director': '' /* string */, 
                'resume': { /* id: Video.Resume, no additional properties allowed */
                    'position': 0 /* number, minimum: 0 */, 
                    'total': 0 /* number, minimum: 0 */
                }, 
                'runtime': '' /* string */, 
                'streamdetails': { /* id: Video.Streams, no additional properties allowed */
                    'audio': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'channels': 0 /* integer */, 
                            'codec': '' /* string */, 
                            'language': '' /* string */
                        }
                    ], 
                    'subtitle': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'language': '' /* string */
                        }
                    ], 
                    'video': [ /* array, minimum items: 1 */
                        { /* no additional properties allowed */
                            'aspect': 0 /* number */, 
                            'codec': '' /* string */, 
                            'duration': 0 /* integer */, 
                            'height': 0 /* integer */, 
                            'width': 0 /* integer */
                        }
                    ]
                }, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetSeasons

Retrieve all tv seasons

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetSeasons', 
    'id': undefined /* integer, required */, 
    'params': {
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.Season */
            undefined /* string */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetSeasons', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'seasons': [ /* array */
            { /* id: Video.Details.Season */
                'episode': 0 /* integer */, 
                'season': undefined /* integer, required */, 
                'showtitle': '' /* string */, 
                'tvshowid': -1 /* integer, id: Library.Id, minimum: 1 */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.GetTVShowDetails

Retrieve details about a specific tv show

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetTVShowDetails', 
    'id': undefined /* integer, required */, 
    'params': {
        'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
        'properties': [ /* id: Video.Fields.TVShow */
            undefined /* string, Requesting the cast field will result in increased response times */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetTVShowDetails', 
    'id': undefined /* integer, required */, 
    'result': {
        'tvshowdetails': { /* id: Video.Details.TVShow */
            'cast': [ /* array, id: Video.Cast */
                { /* no additional properties allowed */
                    'name': undefined /* string, required */, 
                    'role': undefined /* string, required */, 
                    'thumbnail': '' /* string */
                }
            ], 
            'episode': 0 /* integer */, 
            'episodeguide': '' /* string */, 
            'genre': '' /* string */, 
            'imdbnumber': '' /* string */, 
            'mpaa': '' /* string */, 
            'originaltitle': '' /* string */, 
            'premiered': '' /* string */, 
            'rating': 0 /* number */, 
            'sorttitle': '' /* string */, 
            'studio': '' /* string */, 
            'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
            'votes': '' /* string */, 
            'year': 0 /* integer */, 
            'file': '' /* string */, 
            'lastplayed': '' /* string */, 
            'plot': '' /* string */, 
            'title': '' /* string */, 
            'playcount': 0 /* integer */, 
            'fanart': '' /* string */, 
            'thumbnail': '' /* string */, 
            'label': undefined /* string, required */
        }
    }
}

VideoLibrary.GetTVShows

Retrieve all tv shows

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetTVShows', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* id: Video.Fields.TVShow */
            undefined /* string, Requesting the cast field will result in increased response times */
        ], 
        'limits': { /* id: List.Limits, no additional properties allowed */
            'end': -1 /* integer, minimum: 0, The number of items in the list being returned */, 
            'start': 0 /* integer, minimum: 0 */
        }, 
        'sort': { /* id: List.Sort */
            'ignorearticle': false /* boolean */, 
            'method': 'none' /* string */, 
            'order': 'ascending' /* string */
        }
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.GetTVShows', 
    'id': undefined /* integer, required */, 
    'result': {
        'limits': { /* required, id: List.LimitsReturned, no additional properties allowed */
            'end': -1 /* integer, minimum: 0 */, 
            'start': 0 /* integer, minimum: 0 */, 
            'total': undefined /* integer, required, minimum: 0 */
        }, 
        'tvshows': [ /* array */
            { /* id: Video.Details.TVShow */
                'cast': [ /* array, id: Video.Cast */
                    { /* no additional properties allowed */
                        'name': undefined /* string, required */, 
                        'role': undefined /* string, required */, 
                        'thumbnail': '' /* string */
                    }
                ], 
                'episode': 0 /* integer */, 
                'episodeguide': '' /* string */, 
                'genre': '' /* string */, 
                'imdbnumber': '' /* string */, 
                'mpaa': '' /* string */, 
                'originaltitle': '' /* string */, 
                'premiered': '' /* string */, 
                'rating': 0 /* number */, 
                'sorttitle': '' /* string */, 
                'studio': '' /* string */, 
                'tvshowid': -1 /* integer, required, id: Library.Id, minimum: 1 */, 
                'votes': '' /* string */, 
                'year': 0 /* integer */, 
                'file': '' /* string */, 
                'lastplayed': '' /* string */, 
                'plot': '' /* string */, 
                'title': '' /* string */, 
                'playcount': 0 /* integer */, 
                'fanart': '' /* string */, 
                'thumbnail': '' /* string */, 
                'label': undefined /* string, required */
            }
        ]
    }
}

VideoLibrary.Scan

Scans the video sources for new library items

Permissions

UpdateData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Scan', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'VideoLibrary.Scan', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input

Allows limited navigation within XBMC

Methods

Input.Back

Goes back in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Back', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Back', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Down

Navigate down in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Down', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Down', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Home

Goes to home window in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Home', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Home', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Left

Navigate left in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Left', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Left', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Right

Navigate right in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Right', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Right', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Select

Select current item in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Select', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Select', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Input.Up

Navigate up in GUI

Permissions

Navigate

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Input.Up', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Input.Up', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Application

Application information and control

Methods

Application.GetProperties

Retrieves the values of the given properties

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Application.GetProperties', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* array, required, all items must be unique */
            'volume' /* string, id: Application.Property.Name */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Application.GetProperties', 
    'id': undefined /* integer, required */, 
    'result': { /* id: Application.Property.Value */
        'muted': false /* boolean */, 
        'name': '' /* string, minimum length: 1 */, 
        'version': {
            'major': undefined /* integer, required, minimum: 0 */, 
            'minor': undefined /* integer, required, minimum: 0 */, 
            'revision': undefined /* string */ or undefined /* integer, minimum: 0 */, 
            'tag': undefined /* string, required */
        }, 
        'volume': 0 /* integer */
    }
}

Application.Quit

Quit application

Permissions

ControlPower

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Application.Quit', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Application.Quit', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

Application.SetMute

Toggle mute/unmute

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Application.SetMute', 
    'id': undefined /* integer, required */, 
    'params': {
        'mute': undefined /* boolean */ or undefined /* string */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Application.SetMute', 
    'id': undefined /* integer, required */, 
    'result': undefined /* boolean, Mute state */
}

Application.SetVolume

Set the current volume

Permissions

ControlPlayback

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'Application.SetVolume', 
    'id': undefined /* integer, required */, 
    'params': {
        'volume': undefined /* integer, required, minimum: 0, maximum: 100 */
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'Application.SetVolume', 
    'id': undefined /* integer, required */, 
    'result': undefined /* integer, minimum: 0 */
}

System

System controls and information

Notifications

System.OnLowBattery

The system is on low battery.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.OnLowBattery', 
    'params': undefined /* string, required */ or undefined /* null, required */
}

System.OnQuit

XBMC will be closed.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.OnQuit', 
    'params': undefined /* string, required */ or undefined /* null, required */
}

System.OnRestart

The system will be restarted.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.OnRestart', 
    'params': undefined /* string, required */ or undefined /* null, required */
}

System.OnSleep

The system will be suspended.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.OnSleep', 
    'params': undefined /* string, required */ or undefined /* null, required */
}

System.OnWake

The system woke up from suspension.

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.OnWake', 
    'params': undefined /* string, required */ or undefined /* null, required */
}

Methods

System.GetProperties

Retrieves the values of the given properties

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'System.GetProperties', 
    'id': undefined /* integer, required */, 
    'params': {
        'properties': [ /* array, required, all items must be unique */
            'canshutdown' /* string, id: System.Property.Name */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.GetProperties', 
    'id': undefined /* integer, required */, 
    'result': { /* id: System.Property.Value */
        'canhibernate': false /* boolean */, 
        'canreboot': false /* boolean */, 
        'canshutdown': false /* boolean */, 
        'cansuspend': false /* boolean */
    }
}

System.Hibernate

Puts the system running XBMC into hibernate mode

Permissions

ControlPower

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'System.Hibernate', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.Hibernate', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

System.Reboot

Reboots the system running XBMC

Permissions

ControlPower

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'System.Reboot', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.Reboot', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

System.Shutdown

Shuts the system running XBMC down

Permissions

ControlPower

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'System.Shutdown', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.Shutdown', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

System.Suspend

Suspends the system running XBMC

Permissions

ControlPower

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'System.Suspend', 
    'id': undefined /* integer, required */
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'System.Suspend', 
    'id': undefined /* integer, required */, 
    'result': undefined /* string */
}

XBMC

Dumping ground for very XBMC specific operations

Methods

XBMC.GetInfoBooleans

Retrieve info booleans about XBMC and the system

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'XBMC.GetInfoBooleans', 
    'id': undefined /* integer, required */, 
    'params': {
        'booleans': [ /* array, required, minimum items: 1 */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'XBMC.GetInfoBooleans', 
    'id': undefined /* integer, required */, 
    'result': { /* List of key-value pairs of the retrieved info booleans */
        
    }
}

XBMC.GetInfoLabels

Retrieve info labels about XBMC and the system

Permissions

ReadData

Syntax

{
    'jsonrpc': '2.0', 
    'method': 'XBMC.GetInfoLabels', 
    'id': undefined /* integer, required */, 
    'params': {
        'labels': [ /* array, required, minimum items: 1, See http://wiki.xbmc.org/index.php?title=InfoLabels for a list of possible info labels */
            undefined /* string */
        ]
    }
}

Returns

{
    'jsonrpc': '2.0', 
    'method': 'XBMC.GetInfoLabels', 
    'id': undefined /* integer, required */, 
    'result': { /* List of key-value pairs of the retrieved info labels */
        
    }
}

JSON-RPC 2.0 compatibility

Version Method calls Notifications
(server-side)
Notifications
(client-side)
Parameters
by-name
Parameters
by-position
Batch requests
Version 4 Yes Yes Yes Yes Yes Yes

See also

External links