home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
WebEPG: Radiotimes UK
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="gloomyandy" data-source="post: 90359" data-attributes="member: 24855"><p>Hi James,</p><p>The Radiotimes data format used by xmltv would seem to be defined by the following lines of perl script! The first list gives the fields the loop defines which are binary (true/false) values.</p><p></p><p> 326 foreach (@fields) { s/^\s+//; s/\s+$//; undef $_ if not length }</p><p> 372 my ($title, $sub_title, $episode, $year, $director, $cast,</p><p> 373 $premiere, $film, $repeat, $subtitles, $widescreen,</p><p> 374 $new_series, $deaf_signed, $black_and_white, $star_rating,</p><p> 375 $certificate, $genre, $desc, $choice, $date, $start, $stop,</p><p> 376 $duration_mins) = @fields;</p><p> 377 foreach ($premiere, $film, $repeat, $subtitles, $widescreen,</p><p> 378 $new_series, $deaf_signed, $black_and_white, $choice) {</p><p> 379 die "true/false value not defined" if not defined;</p><p> 380 if ($_ eq 'true') { $_ = 1 }</p><p> 381 elsif ($_ eq 'false') { $_ = 0 }</p><p> 382 else { die "bad true/false value $_" }</p><p> 383 }</p><p>Is this enough for you? </p><p></p><p>Oh and looking at some actual data the episode field seems to be of the form n/m ie episode n of a set of m. But this field can also have extra data in it such as the episode title if this is the case they seem to be of the form:</p><p>~n/m - text~</p><p>where text is the episode title. Hope this makes sense.</p><p></p><p></p><p>I was going to try creating a new definition but a couple of things held me back....</p><p>1. I'm not sure what # fields exist (like #GENRE etc.) is there a list?</p><p>2. Not sure how to test it. When I run WepEPG by hand the XMLTV\TVGuide.xml that I get only seems to contain a list of channels not any program data. Is this data now loaded into the database directly? Is there some other trick I need to do to get program data into this file?</p><p></p><p>Thanks</p><p></p><p>Andy</p></blockquote><p></p>
[QUOTE="gloomyandy, post: 90359, member: 24855"] Hi James, The Radiotimes data format used by xmltv would seem to be defined by the following lines of perl script! The first list gives the fields the loop defines which are binary (true/false) values. 326 foreach (@fields) { s/^\s+//; s/\s+$//; undef $_ if not length } 372 my ($title, $sub_title, $episode, $year, $director, $cast, 373 $premiere, $film, $repeat, $subtitles, $widescreen, 374 $new_series, $deaf_signed, $black_and_white, $star_rating, 375 $certificate, $genre, $desc, $choice, $date, $start, $stop, 376 $duration_mins) = @fields; 377 foreach ($premiere, $film, $repeat, $subtitles, $widescreen, 378 $new_series, $deaf_signed, $black_and_white, $choice) { 379 die "true/false value not defined" if not defined; 380 if ($_ eq 'true') { $_ = 1 } 381 elsif ($_ eq 'false') { $_ = 0 } 382 else { die "bad true/false value $_" } 383 } Is this enough for you? Oh and looking at some actual data the episode field seems to be of the form n/m ie episode n of a set of m. But this field can also have extra data in it such as the episode title if this is the case they seem to be of the form: ~n/m - text~ where text is the episode title. Hope this makes sense. I was going to try creating a new definition but a couple of things held me back.... 1. I'm not sure what # fields exist (like #GENRE etc.) is there a list? 2. Not sure how to test it. When I run WepEPG by hand the XMLTV\TVGuide.xml that I get only seems to contain a list of channels not any program data. Is this data now loaded into the database directly? Is there some other trick I need to do to get program data into this file? Thanks Andy [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
WebEPG: Radiotimes UK
Contact us
RSS
Top
Bottom