logo       

[ xmltv-Bugs-902256 ] tv_grab_uk_rt Duplicate start times: msg#00117

Subject: [ xmltv-Bugs-902256 ] tv_grab_uk_rt Duplicate start times
Bugs item #902256, was opened at 2004-02-22 19:49
Message generated for change (Comment added) made by epaepa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=902256&group_id=39046

Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Doug Edwards (tivolan)
Assigned to: Nobody/Anonymous (nobody)
Summary: tv_grab_uk_rt Duplicate start times 

Initial Comment:
If the radio times description includes something like:

including five News Update
or something like
Followed by five news at 9

Programme start and finish times overlap surrounding 
programmes. I can see the logic in the case 
of 'including', but not in the case of 'Followed by'.

For example:
Start of extract from xmltv file (not contiguous):
<programme start="20040222200000 +0000" 
stop="20040222210000 +0000" 
channel="channel5.co.uk" clumpidx="0/2">
    <title lang="en">Back to Reality</title>

<programme start="20040222200000 +0000" 
stop="20040222210000 +0000" .....
<title lang="en">five news at 9</title>
Finish of extract from xmltv file (not contiguous)

(that is, five news at 9 is shown as starting at 8 and 
finishing at 9, the same timings as the programe it 
followed)

Although I can see the logic in duplicating the timings if 
it is 'included' in a programme, it would ne 'nice' to be 
able to strip such duplicates out or for some flag to be 
included in the xmltv file, perhaps denoting if it is 
an 'including' or a 'followed by' case :-)



Start of extended contiguous extract from xmltv file:
<programme start="20040222200000 +0000" 
stop="20040222210000 +0000" 
channel="channel5.co.uk" clumpidx="0/2">
    <title lang="en">Back to Reality</title>
    <sub-title lang="en">Episode Eight</sub-title>
    <desc lang="en">The ultimate reality show. For three 
weeks a luxury mansion is home to 12 reality television 
veterans competing for the chance to become King or 
Queen of reality TV and win a cash prize for their chosen 
charity. With their moves scrutinised by cameras in the 
house they'll be subjected to a public vote from week 
two sending one guest a day `back to reality'. Guests 
include Jade Goody, Nick Bateman, Rik Waller, James 
Hewitt and Ricardo.</desc>
    <url>http://www.five.tv/backtoreality</url>
    <subtitles type="teletext" />
  </programme>
  <programme start="20040222200000 +0000" 
stop="20040222210000 +0000" 
channel="channel5.co.uk" clumpidx="1/2">
    <title lang="en">five news at 9</title>
  </programme>
  <programme start="20040222210000 +0000" 
stop="20040222231500 +0000" 
channel="channel5.co.uk" clumpidx="0/2">
    <title lang="en">Demolition Man</title>
    <desc lang="en">This pretension-free, futuristic 
thriller comes pretty close to being Sylvester Stallone's 
best ever picture. (Audio-described) Wisely keeping his 
tongue stuck firmly in his cheek, Stallone plays a tough 
cop whose unconventional methods land him in a 
cryogenic prison. Decades later, he is defrosted to hunt 
down an old sparring partner, the spectacularly 
psychopathic Wesley Snipes (complete with blond 
thatch), who has escaped from his deep frozen state 
and is creating havoc in the now crime-free Los Angeles 
(renamed San Angeles). Of the supporting cast, Sandra 
Bullock has an early run at a role she would later perfect 
in Speed, Denis Leary gets to deliver one of his thinly 
disguised stand-up routines, while Nigel Hawthorne plays 
the doctor overseeing this 21st-century Utopia.</desc>
    <credits>
      <director>Marco Brambilla</director>
      <actor>Sylvester Stallone</actor>
      <actor>Wesley Snipes</actor>
      <actor>Sandra Bullock</actor>
      <actor>Nigel Hawthorne</actor>
      <actor>Benjamin Bratt</actor>
      <actor>Bob Gunton</actor>
      <actor>Glenn Shadix</actor>
      <actor>Denis Leary</actor>
      <actor>Grand L Bush</actor>
      <actor>Steve Kahan</actor>
    </credits>
    <date>1993</date>
    <url>http://www.radiotimes.com/film</url>
    <subtitles type="teletext" />
    <rating system="BBFC">
      <value>15</value>
    </rating>
    <star-rating>
      <value>4/5</value>
    </star-rating>
  </programme>
  <programme start="20040222210000 +0000" 
stop="20040222231500 +0000" 
channel="channel5.co.uk" clumpidx="1/2">
    <title lang="en">five News Update</title>
  </programme>
  <programme start="20040222231500 +0000" 
stop="20040223011000 +0000" 
channel="channel5.co.uk">
    <title lang="en">Back to Reality</title>
    <desc lang="en">Highlights from the day's events in 
the show that brings together some of the biggest stars 
of reality TV.</desc>
    <url>http://www.five.tv/backtoreality</url>
    <subtitles type="teletext" />
  </programme>
Start of extended contiguous extract from xmltv file:

----------------------------------------------------------------------

>Comment By: Ed Avis (epaepa)
Date: 2004-02-22 20:24

Message:
Logged In: YES 
user_id=10769

The key here is the 'clumpidx' attribute.  This was added to
store listings where one programme follows another without
any clear boundary.  In this case we know that Five News
follows Back to Reality, but the listings source doesn't
give a time when one ends and the next begins.  It just
wedges them both into the same timeslot.

So one programme is given clumpidx 0/2 - that is, 0
programmes come before it in the timeslot out of 2 total -
and the second programme is clumpidx 1/2.  When you look at
the start and stop times you must take clumpidx into account
if present.

It's messy, but the listings data is messy.  I hope to
handle this a bit better in a newer version of the file
format, but the current version does work if you understand
what clumpidx means.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=902256&group_id=39046


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe