2017-03-06, 01:43
Example to filter TVshows by path:
the output would be something like:
Code:
{
"jsonrpc":"2.0",
"params":{
"sort":{
"order":"ascending",
"method":"title"
},
"filter":{
"operator":"startswith",
"field":"path",
"value":"nfs://192.168.1.77/tvshows/"
},
"properties":[
"title",
"file"
],
"limits":{
"start":0,
"end":400
}
},
"method":"VideoLibrary.GetTVShows",
"id":"libTvshows"
}
the output would be something like:
Code:
{
"id":"libTvshows",
"jsonrpc":"2.0",
"result":{
"limits":{
"end":58,
"start":0,
"total":58
},
"tvshows":[
{
"file":"nfs://192.168.1.77/tvshows/24/",
"label":"24",
"title":"24",
"tvshowid":44
},
{
"file":"nfs://192.168.1.77/tvshows/30 Rock/",
"label":"30 Rock",
"title":"30 Rock",
"tvshowid":62
},
{
"file":"nfs://192.168.1.77/tvshows/American Horror Story/",
"label":"American Horror Story",
"title":"American Horror Story",
"tvshowid":43
},
{
"file":"nfs://192.168.1.77/tvshows/Arrested Development/",
"label":"Arrested Development",
"title":"Arrested Development",
"tvshowid":42
},
{
"file":"nfs://192.168.1.77/tvshows/Band of Brothers/",
"label":"Band of Brothers",
"title":"Band of Brothers",
"tvshowid":41
},
{
"file":"nfs://192.168.1.77/tvshows/Battlestar Galactica (2003)/",
"label":"Battlestar Galactica (2003)",
"title":"Battlestar Galactica (2003)",
"tvshowid":61
},
{
"file":"nfs://192.168.1.77/tvshows/Better Call Saul/",
"label":"Better Call Saul",
"title":"Better Call Saul",
"tvshowid":40
},
{
"file":"nfs://192.168.1.77/tvshows/The Bible/",
"label":"The Bible",
"title":"The Bible",
"tvshowid":11
},
{
"file":"nfs://192.168.1.77/tvshows/The Big Bang Theory/",
"label":"The Big Bang Theory",
"title":"The Big Bang Theory",
"tvshowid":10
},
{
"file":"nfs://192.168.1.77/tvshows/Blackadder/",
"label":"Blackadder",
"title":"Blackadder",
"tvshowid":39
},
{
"file":"nfs://192.168.1.77/tvshows/O Bocas/",
"label":"O Bocas",
"title":"O Bocas",
"tvshowid":19
},
{
"file":"nfs://192.168.1.77/tvshows/Breaking Bad/",
"label":"Breaking Bad",
"title":"Breaking Bad",
"tvshowid":38
},
{
"file":"nfs://192.168.1.77/tvshows/The Bridge (2011)/",
"label":"The Bridge (2011)",
"title":"The Bridge (2011)",
"tvshowid":55
},
{
"file":"nfs://192.168.1.77/tvshows/The Bridge (2013)/",
"label":"The Bridge (2013)",
"title":"The Bridge (2013)",
"tvshowid":92
},
{
"file":"nfs://192.168.1.77/tvshows/Californication/",
"label":"Californication",
"title":"Californication",
"tvshowid":37
},
{
"file":"nfs://192.168.1.77/tvshows/Dartacao e os Tres Moscaoteiros/",
"label":"Dartacão e os Três Moscãoteiros",
"title":"Dartacão e os Três Moscãoteiros",
"tvshowid":36
},
{
"file":"nfs://192.168.1.77/tvshows/Dexter/",
"label":"Dexter",
"title":"Dexter",
"tvshowid":35
},
{
"file":"nfs://192.168.1.77/tvshows/Duarte e Companhia/",
"label":"Duarte E Companhia",
"title":"Duarte E Companhia",
"tvshowid":34
},
{
"file":"nfs://192.168.1.77/tvshows/Face Off/",
"label":"Face Off",
"title":"Face Off",
"tvshowid":33
},
{
"file":"nfs://192.168.1.77/tvshows/Fargo/",
"label":"Fargo",
"title":"Fargo",
"tvshowid":60
},
{
"file":"nfs://192.168.1.77/tvshows/Fawlty Towers/",
"label":"Fawlty Towers",
"title":"Fawlty Towers",
"tvshowid":32
},
{
"file":"nfs://192.168.1.77/tvshows/Firefly/",
"label":"Firefly",
"title":"Firefly",
"tvshowid":31
},
{
"file":"nfs://192.168.1.77/tvshows/Freaks and Geeks/",
"label":"Freaks and Geeks",
"title":"Freaks and Geeks",
"tvshowid":30
},
{
"file":"nfs://192.168.1.77/tvshows/The Fresh Prince of Bel-Air/",
"label":"The Fresh Prince of Bel-Air",
"title":"The Fresh Prince of Bel-Air",
"tvshowid":8
},
{
"file":"nfs://192.168.1.77/tvshows/Friends/",
"label":"Friends",
"title":"Friends",
"tvshowid":29
},
{
"file":"nfs://192.168.1.77/tvshows/Game of Thrones/",
"label":"Game of Thrones",
"title":"Game of Thrones",
"tvshowid":28
},
{
"file":"nfs://192.168.1.77/tvshows/Herman Enciclopedia/",
"label":"Herman Enciclopédia",
"title":"Herman Enciclopédia",
"tvshowid":27
},
{
"file":"nfs://192.168.1.77/tvshows/Homeland/",
"label":"Homeland",
"title":"Homeland",
"tvshowid":26
},
{
"file":"nfs://192.168.1.77/tvshows/Homicide - Life On The Street/",
"label":"Homicide: Life On The Street",
"title":"Homicide: Life On The Street",
"tvshowid":59
},
{
"file":"nfs://192.168.1.77/tvshows/House of Cards/",
"label":"House of Cards",
"title":"House of Cards",
"tvshowid":25
},
{
"file":"nfs://192.168.1.77/tvshows/How I Met Your Mother/",
"label":"How I Met Your Mother",
"title":"How I Met Your Mother",
"tvshowid":24
},
{
"file":"nfs://192.168.1.77/tvshows/The Killing/",
"label":"The Killing",
"title":"The Killing",
"tvshowid":54
},
{
"file":"nfs://192.168.1.77/tvshows/Lost/",
"label":"Lost",
"title":"Lost",
"tvshowid":58
},
{
"file":"nfs://192.168.1.77/tvshows/MacGyver/",
"label":"MacGyver",
"title":"MacGyver",
"tvshowid":95
},
{
"file":"nfs://192.168.1.77/tvshows/Mad Men/",
"label":"Mad Men",
"title":"Mad Men",
"tvshowid":23
},
{
"file":"nfs://192.168.1.77/tvshows/MasterChef Australia/",
"label":"MasterChef Australia",
"title":"MasterChef Australia",
"tvshowid":22
},
{
"file":"nfs://192.168.1.77/tvshows/Modern Family/",
"label":"Modern Family",
"title":"Modern Family",
"tvshowid":98
},
{
"file":"nfs://192.168.1.77/tvshows/Monty Python's Flying Circus/",
"label":"Monty Python's Flying Circus",
"title":"Monty Python's Flying Circus",
"tvshowid":21
},
{
"file":"nfs://192.168.1.77/tvshows/Mozart in the Jungle/",
"label":"Mozart in the Jungle",
"title":"Mozart in the Jungle",
"tvshowid":96
},
{
"file":"nfs://192.168.1.77/tvshows/Mr. Robot/",
"label":"Mr. Robot",
"title":"Mr. Robot",
"tvshowid":20
},
{
"file":"nfs://192.168.1.77/tvshows/Narcos/",
"label":"Narcos",
"title":"Narcos",
"tvshowid":57
},
{
"file":"nfs://192.168.1.77/tvshows/The Office/",
"label":"The Office",
"title":"The Office",
"tvshowid":94
},
{
"file":"nfs://192.168.1.77/tvshows/Prison Break/",
"label":"Prison Break",
"title":"Prison Break",
"tvshowid":18
},
{
"file":"nfs://192.168.1.77/tvshows/Rome/",
"label":"Rome",
"title":"Rome",
"tvshowid":17
},
{
"file":"nfs://192.168.1.77/tvshows/Saved by the Bell/",
"label":"Saved by the Bell",
"title":"Saved by the Bell",
"tvshowid":16
},
{
"file":"nfs://192.168.1.77/tvshows/Scream - The TV Series/",
"label":"Scream: The TV Series",
"title":"Scream: The TV Series",
"tvshowid":56
},
{
"file":"nfs://192.168.1.77/tvshows/Seinfeld/",
"label":"Seinfeld",
"title":"Seinfeld",
"tvshowid":15
},
{
"file":"nfs://192.168.1.77/tvshows/Sherlock/",
"label":"Sherlock",
"title":"Sherlock",
"tvshowid":14
},
{
"file":"nfs://192.168.1.77/tvshows/The Shield/",
"label":"The Shield",
"title":"The Shield",
"tvshowid":53
},
{
"file":"nfs://192.168.1.77/tvshows/Six Feet Under/",
"label":"Six Feet Under",
"title":"Six Feet Under",
"tvshowid":13
},
{
"file":"nfs://192.168.1.77/tvshows/The Sopranos/",
"label":"The Sopranos",
"title":"The Sopranos",
"tvshowid":6
},
{
"file":"nfs://192.168.1.77/tvshows/Supernatural/",
"label":"Supernatural",
"title":"Supernatural",
"tvshowid":12
},
{
"file":"nfs://192.168.1.77/tvshows/Taboo (2017)/",
"label":"Taboo (2017)",
"title":"Taboo (2017)",
"tvshowid":97
},
{
"file":"nfs://192.168.1.77/tvshows/True Detective/",
"label":"True Detective",
"title":"True Detective",
"tvshowid":2
},
{
"file":"nfs://192.168.1.77/tvshows/The Tudors/",
"label":"The Tudors",
"title":"The Tudors",
"tvshowid":5
},
{
"file":"nfs://192.168.1.77/tvshows/Twin Peaks/",
"label":"Twin Peaks",
"title":"Twin Peaks",
"tvshowid":1
},
{
"file":"nfs://192.168.1.77/tvshows/The Walking Dead/",
"label":"The Walking Dead",
"title":"The Walking Dead",
"tvshowid":4
},
{
"file":"nfs://192.168.1.77/tvshows/The Wire/",
"label":"The Wire",
"title":"The Wire",
"tvshowid":3
}
]
}
}