-
Notifications
You must be signed in to change notification settings - Fork 25
JSON recordings
Luis Fernandes edited this page Apr 18, 2013
·
1 revision
GET /dvrlist_upcoming
{
"totalCount":1,
"entries":[
{
"channel":"CHANNEL TITLE",
"chicon":"channelicon.jpg",
"config_name":"",
"title":"PROGRAM TITLE",
"description":" \n",
"id":22,
"start":1362052800,
"end":1362096000,
"duration":43200,
"creator":"192.168.1.200",
"pri":"normal",
"status":"Scheduled for recording",
"schedstate":"scheduled"
}
]
}
GET /dvrlist_finished
GET /dvrlist_failed
{ "entries" : [ { "channel" : "Disnnel",
"chicon" : "disia.jpg",
"config_name" : "",
"creator" : "Auto recording by: 192.168.1.250",
"description" : "O mágEuropeu 2012.",
"duration" : 3600,
"end" : 1360447200,
"id" : 20,
"pri" : "normal",
"schedstate" : "completedError",
"start" : 1360443600,
"status" : "Time missed",
"title" : "Dynal T.2 Ep.4"
} ],
"totalCount" : 1
}
POST /tablemgr
op get
table autorec
{ "entries" : [ { "approx_time" : 0,
"channel" : "Dinel",
"contenttype" : 0,
"enabled" : 0,
"id" : "5",
"pri" : "normal",
"title" : "Osas",
"weekdays" : "6"
},
{ "approx_time" : 1260,
"channel" : "Diso",
"comment" : "Created from EPG query",
"config_name" : "",
"contenttype" : 0,
"creator" : "192.168.1.250",
"enabled" : 1,
"id" : "6",
"pri" : "normal",
"title" : "Do",
"weekdays" : "6"
},
{ "approx_time" : 0,
"channel" : "Discovery Channel",
"contenttype" : 0,
"enabled" : 0,
"id" : "4",
"pri" : "normal",
"title" : "Cuity",
"weekdays" : "5"
},
{ "approx_time" : 0,
"channel" : "M",
"contenttype" : 0,
"enabled" : 0,
"id" : "3",
"pri" : "normal",
"title" : "Star0",
"weekdays" : "1,2,3,4,5"
}
] }
Add recording: POST /dvr
eventId=462919&op=recordEvent&config_name=
response: {"success": 1}
Cancel: POST /dvr
entryId=22&op=cancelEntry
Delete entry (removes the entry after cancel): POST /dvr
entryId=22&op=deleteEntry