SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV EPG Service
Forum Rules FAQs Community Downloads Today's Posts Search


SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here.

Thread Tools Search this Thread Display Modes
Old 12-09-2006, 12:31 PM
grooves12 grooves12 is offline
Sage Aficionado
Join Date: Feb 2006
Posts: 303
Scripts to modify XMLTV data.

Ok, I want to make a couple of changes to some of my xmltv data... for the program below, special attention to the item in bold:
<programme start="20061213110000 +0100" stop="20061213120000 +0100" channel="">
<title lang="en">Nova</title>
<length units="minutes">60</length>
<desc lang="en"> - Descent Into the Ice
Series/Special. (2004) An exploration of ice caves in Mont Blanc finds trapped flood water that menaces the populated valleys below. (CC) (Stereo) </desc>
<rating system="MPAA">
<category lang="en">Series</category>
First all of my data has the " - " which is useless right at the beginning of the <desc> field, and I would like to remove that out.

For series that have episode titles, like this one does, there is a carriage return right after the episode name. I looked through the data and there are not any carriage returns in any other <desc> data unless it is following an episode name, and the episode names are alwats rights at the beginning. I would like to parse the data so that the info before a carriage return is removed from the <desc> field and inserted into a new field within the listing of <subtitle> like this: <sub-title lang="en">Descent Into the Ice</sub-title>

Can anyone give me a little direction on creating a script to do this??
Reply With Quote
Old 12-11-2006, 03:43 PM
birty birty is offline
Sage User
Join Date: Sep 2004
Posts: 71
my xmltv grabber ( ) can import and process xmltv listings. You will require a little knowledge of lua to do what you want though
Reply With Quote
Old 12-31-2006, 11:47 PM
something fishy something fishy is offline
Sage Advanced User
Join Date: Sep 2004
Posts: 240
I use bkReplaceEm to tidy up xmltv files. It replaces strings in a text file and can be run from the command line. In this case replace
<desc lang="en"> -
<desc lang="en">
It is freeware from

Happy New Year
Reply With Quote
Old 12-31-2006, 11:50 PM
something fishy something fishy is offline
Sage Advanced User
Join Date: Sep 2004
Posts: 240
Sorry, hadn't fully read what you want.

tvxb is as close as I've found to an intelligent xmltv grabber and will probably allow you to split the description and title fields as you need.

Reply With Quote

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

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 02:58 PM.

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