Page 2 of 3

Re: DVBLink Remote API

PostPosted: Thu Nov 01, 2012 3:17 pm
by Oberon
azebro wrote:Thanks Oberon,

It appeared that there was a serialization issue with the request, I can get the response now.
Could you please look at the post above re the children objects included in the reply?

Thanks,

Adam

I have answered it already. You always get one level of children. And then you need to ask for the next level.

Re: DVBLink Remote API

PostPosted: Mon Feb 04, 2013 12:04 pm
by Videonisse
Oberon wrote:
neil_coggins wrote:Hi,
Media Center on Windows 7 x64.

Here is how the string should look like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<epg_searcher xmlns="http://www.dvblogic.com"><channels_ids xmlns="http://www.dvblogic.com"><channel_id>7881299348048738</channel_id></channels_ids><program_id/><keywords/><start_time>-1</start_time><end_time>-1</end_time></epg_searcher>

It uses channels_ids instead of channel_ids.


Should this work as described in http://188.121.56.29//download/dvblink_remote_api.htm also when using "mc_recorder"?

I'm trying to use the API from the RESTclient plugin in Firefox to verify output of selected XMLTV sources, but the respons I get lacks most of the expected EPG tags. :?

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 8:43 am
by Videonisse
Videonisse wrote:
Oberon wrote:
neil_coggins wrote:Hi,
Media Center on Windows 7 x64.

Here is how the string should look like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<epg_searcher xmlns="http://www.dvblogic.com"><channels_ids xmlns="http://www.dvblogic.com"><channel_id>7881299348048738</channel_id></channels_ids><program_id/><keywords/><start_time>-1</start_time><end_time>-1</end_time></epg_searcher>

It uses channels_ids instead of channel_ids.


Should this work as described in http://188.121.56.29//download/dvblink_remote_api.htm also when using "mc_recorder"?

I'm trying to use the API from the RESTclient plugin in Firefox to verify output of selected XMLTV sources, but the respons I get lacks most of the expected EPG tags. :?


@Oberon: should above work with system using mc_recorder as well? Am I using the correct XML code to request the EPG data?


Sent from my iPad using Tapatalk

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 9:11 am
by Oberon
This rest plugin cannot specify POST parameters. That's why it does not work as it should for you.
You cam check how the API works using the following approach. Save the following code:
Code: Select all
<form action="http://localhost:8080/cs/" method="POST">
<input type="text" name="command" value="get_channels"/>
<textarea name="xml_param"><?xml version="1.0" encoding="utf-8" ?><channels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.dvblogic.com" /></textarea>
<input type="submit" />
</form>

in the html file and open it in the web browser.
Of course you can put any other relevant commands and parameters in it.

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 9:54 am
by Videonisse
I also have Chrome with the Advanced Rest Client App installed but it gives me only error codes as I don't know how to format the POST request, could you maybe give me an example how to extract the EPG using this client? :roll:

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 10:39 am
by Oberon
Please use the method that I have described in my previous post.

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 11:19 am
by Realman
Or try this
dvblink-api.png
dvblink-api.png (172.22 KiB) Viewed 17305 times

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 1:02 pm
by Videonisse
Oberon wrote:Please use the method that I have described in my previous post.


I did, I only get an respons of "1000", see below. Also added a copy the html file I created based on the code from you.

Does it matter if I use dlrecorder or mc_recorder, or what should I expect as respons based on the code you provided?

My intention is to view and verify the EPG data provided via the API for my DVBLink setup.

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 2:01 pm
by Realman
Try to use dlrecorder.

Re: DVBLink Remote API

PostPosted: Tue Feb 05, 2013 8:55 pm
by Videonisse
Realman wrote:Try to use dlrecorder.


Changed to dlrecorder in the config for my second DVBLink Server; unfortunately, it gives exact same result. :(

In fact, it seems to fully ignore the "payload" and the URL http://192.168.10.50:8080/cs redirects to http://192.168.10.50:8080/channel/list/?sort=number. See this pdf for the complete response.

I use Win 7 for the server, Realman, what are you using?

@Oberon: Could you give me an example how I get the EPG data for one channel via the API?

The data I expect as respons are the relevant fields below:

Code: Select all
            <channel_epg> - optional
                        <channel_id/> - string mandatory
                        <dvblink_epg> - mandatory
                                   <program> - mandatory
                                               <program_id – string mandatory
                                               <name/> — string mandatory
                                               <start_time/> — long mandatory
                                               <duration/> — long mandatory

                                               string optional:
                                               <short_desc/>
                                               <subname/>
                                               <language/>
                                               <actors/>
                                               <directors/>
                                               <writers/>
                                               <producers/>
                                               <guests/>
                                               <categories/>
                                               <image/>
 
                                               long optional:
                                               <year/>
                                               <episode_num/>
                                               <season_num/>
                                               <stars_num/>
                                               <starsmax_num/>
 
                                               Optional.true if tag is present, false otherwise:
                                               <hdtv/>
                                               <premiere/>
                                               <repeat/>
                                               <cat_action/>
                                               <cat_comedy/>
                                               <cat_documentary/>
                                               <cat_drama/>
                                               <cat_educational/>
                                               <cat_horror/>
                                               <cat_kids/>
                                               <cat_movie/>
                                               <cat_music/>
                                               <cat_news/>
                                               <cat_reality/>
                                               <cat_romance/>
                                               <cat_scifi/>
                                               <cat_serial/>
                                               <cat_soap/>
                                               <cat_special/>
                                               <cat_sports/>
                                               <cat_thriller/>
                                               <cat_adult/>
                                               <is_record/>
                                               <is_series/>
                                               <is_repeat_record/>
                                   </program>
                                   ...
                        </dvblink_epg>
            </channel_epg>

Re: DVBLink Remote API

PostPosted: Wed Feb 06, 2013 6:41 am
by Realman
Enter url at the end with a backslash http://192.168.10.50:8080/cs/

Re: DVBLink Remote API

PostPosted: Wed Feb 06, 2013 11:53 am
by Videonisse
Realman wrote:Enter url at the end with a backslash http://192.168.10.50:8080/cs/


@Realman: you are my hero, you made my day! It works now, many thanks! :D

Re: DVBLink Remote API

PostPosted: Fri Sep 05, 2014 4:26 pm
by ralphFFM
Are there any changes to the API which are needed when using with Server Version 5?
Especially any added/deleted/modified parameters for direct streaming (play_channel command) or indirect streaming.

Re: DVBLink Remote API

PostPosted: Sun Sep 07, 2014 12:47 pm
by Oberon
All functionality, described in Remote API doc works in DVBLink v5, except for asf streaming.
We will add coming weeks the new information regarding direct transcoded and time-shifted streaming options.

Re: DVBLink Remote API

PostPosted: Tue Dec 16, 2014 3:34 pm
by gatolus
Oberon wrote:All functionality, described in Remote API doc works in DVBLink v5, except for asf streaming.
We will add coming weeks the new information regarding direct transcoded and time-shifted streaming options.


When can we Get Updated API Information on direct transcoded Streams for live tv and recorded tv For Windows phone/ Windows 8 RT..

as asf is down.