Results 1 to 10 of 82

Thread: missig guide data?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2004
    Location
    Wellington, NZ
    Posts
    477
    Quote Originally Posted by Wanted
    Bring on the predicted data. I missed Firefly last night because of a gap in TV3 listing.....
    Actually, the predicted data would not solve the problem as it is usually implemented as a duplicate of the previous weeks slice, so if there was a gap in that... then there would be a gap in the predicted data. And you would only be using the predicted data if you had not been able to contact the emulator to receive the real data (which may also have gaps in it).

    The program that creates the slice needs to be improved so that there are no gaps in the data. There is a chance that the pa rsers/scrapers are the ones at fault, but the other sources of XML-TV data seem to contain the missing information which leads me to believe it is the slice generator which is getting confused.

    For example TV1 always has gaps, but the following script will pa rse the TVNZ site fairly well (for TV2 just replace tvone with tv2 in the URL). It does not work out the duration of the episodes, but that can be deduced from the start time of the following show. [The optional parameter to this function is the day (eg thursday)]
    Code:
    TV1() {
      TMP=/tmp/TV_TVNZ_TV1.tmp
    
      if test -n "$1"; then
        day="&date=`date -d $1 +%d%m%Y`"
      else
        day=""
        # TVNZ site is a little broken, seems to display yesterdays if
        # todays is not available, so hardcode it.
        day="&date=`date +%d%m%Y`"
      fi
    
      lynx -dump -nolist -width=1024 "http://tvnz.co.nz/view-preempt/tvone_epg_skin/channelDesc=tv_one$day" >$TMP
    
      cat $TMP |\
      sed "s,\',',g;s,\&,\&,ig" |\
      while read line; do
        if test `expr "$line" : '.* [0-9][0-9]:[0-9][0-9]$'` -ne 0; then
          title=`echo "$line" | sed 's, \([0-9][0-9]:[0-9][0-9]\)$,,'`
          time=`echo "$line" | sed 's,.* \([0-9][0-9]:[0-9][0-9]\)$,\1,'`
          hour=`echo "$time" | sed 's,:.*,,'`
          read desc
          desc="`echo "$desc" | sed 's,[0-9]*$,,'`"
    
          echo "$title|$time|TV1|$desc"
        fi
      done
    }
    Last edited by thomson; 07-04-2005 at 06:43 AM.

Similar Threads

  1. No guide data
    By divxmaster in forum New Zealand TV Guide Issues
    Replies: 3
    Last Post: 12-02-2016, 04:37 PM
  2. no guide data
    By sparker in forum TV Guide Issues
    Replies: 2
    Last Post: 25-12-2007, 06:01 AM
  3. Guide data showing in "Live TV guide" but not in searches
    By dmicklem in forum TV Guide Issues
    Replies: 6
    Last Post: 25-12-2006, 07:28 AM
  4. Where has the guide data gone?
    By stuge in forum New Zealand TV Guide Issues
    Replies: 3
    Last Post: 19-12-2005, 01:36 PM
  5. How to help with Guide Data
    By curto in forum TV Guide Issues
    Replies: 3
    Last Post: 20-08-2004, 10:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •