SageTV Community  

Go Back   SageTV Community > SageTV International User Forums > SageTV Netherlands

SageTV Netherlands SageTV and SageTV Recorder Users from The Netherlands - This forum is for you to post about specific issues using SageTV software in The Netherlands.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2005, 12:10 PM
peter peter is offline
Sage User
 
Join Date: Jun 2003
Location: Amsterdam Netherlands
Posts: 42
BBC late night movie not showing in epg

Hello
I'm having the following problem with tv_grab_nl, the late night movie on the BBC is not showing up in the epg instead i get Weerbericht= Weather. I am using the bat file between the example xml data. does anyone know how to get the movie showing up instead of the weather

Peter

example from grabber
- <programme start="20050118010500 +0100" stop="20050118025500 +0100" channel="7.tvgids.nl" clumpidx="0/1">
<title lang="nl">Blow out</title>
<desc lang="nl">thriller Een geluidsman neemt per ongeluk belangrijk bewijsmateriaal op als een senator met zijn auto in de rivier belandt en omkomt. Hij blijkt een geweerschot gehoord te hebben, en door deze wetenschap komt ook zijn eigen leven in gevaar</desc>
- <credits>
<director>Brian De Palma</director>
<actor>John Travolta</actor>
<actor>Nancy Allen</actor>
<actor>John Lithgow</actor>
</credits>
<date>1981</date>
<category lang="nl">Film</category>
- <video>
<aspect>16:9</aspect>
</video>
<subtitles type="teletext" />
</programme>
- <programme start="20050118010500 +0100" stop="20050118025500 +0100" channel="7.tvgids.nl" clumpidx="0/1">
<title lang="nl">Weerbericht</title>
<category lang="nl">Nieuws/actualiteiten</category>


cd\xmltv
xmltv tv_grep --not --clumpidx "" -or --clumpidx "0/" grab.xml > 1.xml
xmltv tv_grep --eval "if ( ${$_}{category} && ${$_}{category}[0] && ${$_}{category}[0][0] =~ m/^film/i ) { ${$_}{category}[0][0] = 'Movie'; } ;1 " 1.xml > 2.xml
xmltv tv_grep --eval "if ( ${$_}{category} && ${$_}{category}[0] && ${$_}{category}[0][0] =~ m/^Nieuws/i ) { ${$_}{category}[0][0] = 'News'; } ;1 " 2.xml > 3.xml
xmltv tv_grep --eval "if ( ${$_}{category} && ${$_}{category}[0] && ${$_}{category}[0][0] =~ m/^sport/i ) { ${$_}{category}[0][0] = 'Sports event'; } ;1 " 3.xml > 4.xml
xmltv tv_grep --eval "if ( ${$_}{category} && ${$_}{category}[0] && ${$_}{category}[0][0] =~ m/^erotiek/i ) { ${$_}{category}[0][0] = 'Adult'; } ;1 " 4.xml > 5.xml
xmltv tv_imdb --imdbdir d:\imdb --output 6.xml 5.xml
xmltv tv_sort --output epg.xml 6.xml
copy c:\xmltv\epg.xml c:\progra~1\freyte~1\sagetv\epgdata.xml

Data after bat file
- <programme start="20050118010500 +0100" stop="20050118025500 +0100" channel="7.tvgids.nl" clumpidx="0/1">
<title>Blow Out</title>
<desc lang="nl">thriller Een geluidsman neemt per ongeluk belangrijk bewijsmateriaal op als een senator met zijn auto in de rivier belandt en omkomt. Hij blijkt een geweerschot gehoord te hebben, en door deze wetenschap komt ook zijn eigen leven in gevaar</desc>
- <credits>
<director>Brian De Palma</director>
<actor>John Travolta</actor>
<actor>Nancy Allen</actor>
<actor>John Lithgow</actor>
</credits>
<date>1981</date>
<category lang="en">Movie</category>
<category lang="en">Mystery</category>
<category lang="en">Thriller</category>
<url>http://us.imdb.com/M/title-exact?Blow%20Out%20%281981%29</url>
- <video>
<aspect>16:9</aspect>
</video>
<subtitles type="teletext" />
- <star-rating>
<value>7.0/10</value>
</star-rating>
</programme>
- <programme start="20050118010500 +0100" stop="20050118025500 +0100" channel="7.tvgids.nl" clumpidx="0/1">
<title lang="nl">Weerbericht</title>
<category lang="nl">News</category>
Reply With Quote
  #2  
Old 01-17-2005, 12:48 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
the source xmltv data is incorrect -- you should log this in the XMLTV mailing lists...
When there are overlapping programs or 'Film, followed by weather' the 2 programs should have the same times and clumpidx="0/2" clumpidx="1/2" to indicate this -- in your data, both programs are shown as separate clumps

This means that the tv_grep to avoid clumping cannot get only the film, and the 2 progs are imported into Sage, with the second over-writing the first.

Workaround 1: try using tv_sort to process the data before the tv_grep -- it may re-clump the data,
Workaround 2: grep-out the Weerbericht: tv_grep --not --title "Weerbericht"
Workaround 3: use tv_grab_uk_rt to grab UK channels, and use tv_cat to merge this data with the dutch channels from tv_grab_nl (tv_grab_uk_rt correctly clumps the 2 programs)
Reply With Quote
  #3  
Old 01-17-2005, 02:23 PM
peter peter is offline
Sage User
 
Join Date: Jun 2003
Location: Amsterdam Netherlands
Posts: 42
thanks Niel for the quick answer. I have added suggestion 1 and 2 and the movies are showing up now.

About the data well if your using data from this site you probably know it is put together rather careless. But it's not meant for a epg so who am i to complain. So i don't think it's the grabbers fault

And if you look at the bat file you can see most of the lines are yours so thanks for those as well. And i really love the default padding been hoping for that for a long time.

Peter
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.