Simple Example Needed

Discussion about Schedules Direct grabber code and data formats.

Simple Example Needed

Postby zaxxon » Sun Sep 13, 2015 5:17 pm

Hi. I'm new to SchedulesDirect and love it. I'm using it with MythTV and I also want to do some experimenting with the raw data by way of a bash shell script or python script. I searched around the forum and see many discussions about the "old methods/server" and "new methods/servers" and it's a bit confusing for a new player like myself. Can someone point me to a current simple example that show how to make a call to the database, authenticate the username/password and download a lineup? Thank you.
zaxxon
 
Posts: 2
Joined: Sat Sep 12, 2015 2:20 pm

Re: Simple Example Needed

Postby rkulagow » Sun Sep 13, 2015 5:20 pm

If by "new" method you mean the JSON service, then there's a MythTV grabber at

https://github.com/SchedulesDirect/mfdb ... I-20141201

Which implements a mythfilldatbase replacement as a php CLI script.

The "old" method (which isn't old so much as it is different) uses the XML service. For that you could look at the xmltv project, or the MythTV sourcecode.
rkulagow
SD Staff
 
Posts: 884
Joined: Tue Aug 14, 2007 3:15 pm

Re: Simple Example Needed

Postby rkulagow » Sun Sep 13, 2015 5:21 pm

rkulagow
SD Staff
 
Posts: 884
Joined: Tue Aug 14, 2007 3:15 pm

Re: Simple Example Needed

Postby zaxxon » Sun Sep 13, 2015 5:27 pm

Thanks rkulagow. this info is exactly what I was looking for.
zaxxon
 
Posts: 2
Joined: Sat Sep 12, 2015 2:20 pm

Re: Simple Example Needed

Postby rkulagow » Sun Sep 13, 2015 5:38 pm

Sure. If you're on the JSON track then please use the JSON Developers Corner.
rkulagow
SD Staff
 
Posts: 884
Joined: Tue Aug 14, 2007 3:15 pm

Re: Simple Example Needed

Postby rmeden » Sun Sep 13, 2015 9:07 pm

and if you want the "old" SD-DD XML feed.. your MythTV box may already have a copy in /tmp

You can also install xmltv, and then
tv_grab_na_dd --configure # answer questions
tv_grab_na_dd --dd-data dd.xml --download-only --days 7 # to get the "raw" data (tvxd schema)
tv_grab_na_dd --output tv.xml --days 7 # to get XMLTV formatted data

Depending on what you want to do with the data, the XMLTV package has lots of tools to manipulate the data.
rmeden
SD Board Member
 
Posts: 1486
Joined: Tue Aug 14, 2007 2:31 pm
Location: Cedar Hill, TX


Return to Developers Corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron