[mythtv] DirectTv, etc.

Robert Kulagowski mythtv-dev@snowman.net
Mon, 11 Nov 2002 22:18:03 -0600


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > 3) This has NOTHING to do with mythtv, but absolutely the 
> > > worst thing about 
> > using directv with MythTV is that zap2it's channel guide 
> system has *no* 
> > ability to get pay per view movie information.. I have been 
> trying to 
> > figure out how to appropriately query www.directv.com 's 
> site for PPV 
> > information.. This is, as I understand, totally a 
> zap2it.com / xmltv 
> > issue.. but it still hurts me deeply..
> 
> I'm going to take a shot dealing with tonight so if you have any
> ideas/comments about parsing the directv listings please post 
> or email me
> (use ray@sonictech.net address rather than maillists@...).

Why use zap2it when you can get guide data from TVGuide?

http://www.cherrynebula.net/projects/tvlisting/tvlisting.html

After compiling it on my system, getting the service ID for Central
DirecTV region, I ran it like this:

% tvlisting --serviceid=63892 --dumper > a.dumper 

And I got this in a.dumper:
"DIRECTV - Central Time Zone"
"Mon 11"
[
  "10:00 PM",
  "10:30 PM",
  "11:00 PM",
  "11:30 PM"
]
[
  "199#HDNET#6#SpORt NW#6#World Report#6#Mark Cuban#6#Comedy Shorts",
  "202#CNN#6#Connie Chung Tonight#6#Lou Dobbs Moneyline#12#Larry King
Live",
  "203#COURT#12#NYPD Blue#12#The System",
  "204#HN#12#Headline News#12#Headline News",
<etc>

First field is the channel, second is the network, third is the
number of 5 minute segments it occupies (6 == 30 minutes, 12 == 1
hour).

There are other output formats like --text, --html, --xml, etc, but
dumper is nice and simple.  

Program details aren't grabbed automatically, so you can do this:
[mythtv@pvr tvlisting-2.0.6]$ tvlisting --serviceid=63892 --detail
"To Hell and Back"
v-string in use/require non-portable at /usr/bin/tvlisting line 62.
Using an array as a reference is deprecated at
lib/TVListing/TVGuide.pm line 301.
To Hell and Back
To Hell and Back
106 min.
Audie Murphy plays himself in this account of his WWII service in
Europe. Johnson: Marshall Thompson. Brandon: Charles Drake. Manning:
Gregg Palmer. Kerrigan: Jack Kelly. Maria: Susan Kohner. Valentino:
Paul Picerni. Kovak: Richard Castle. Sanchez: Art Aragon. Swope:
Felix Noriego. Lee: David Janssen. Saunders: Brett Halsey. Jesse
Hibbs directed.
    Read the CineBooks movie review
Cast:
Felix Noriego, David Janssen, Brett Halsey, Paul Picerni, Richard
Castle, Art Aragon, Gregg Palmer, Jack Kelly, Susan Kohner, Audie
Murphy, Marshall Thompson, Charles Drake
Category:
Movie, Biography
Director:
Jesse Hibbs
Release Year:
1955
Additional Airings
Date
Time
 
Channel
VCR Plus+
Monday, 11
254 AMC
N/A

I'm sure a motivated person can use this knowlege as a springboard...

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPdCA+/c1NpCTlP0JEQKpwwCg0BwH0R/BAL3lYHiZsLwznHmSBysAn21Z
oEL7Z43eqVYNUvhxogwQj5pc
=gII9
-----END PGP SIGNATURE-----