|
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 |
#1
|
||||
|
||||
XMLTVImportPlugin: Demideus
A while ago I started adding features to the XMLTVImportPlugin. Mainly to translate categories so that shows would appear color-coded in the EPG.
After several updates I think it's high time to put this plugin in it's own thread... Before you unzip xmltvimportplugin.zip in the SageTV directory, make a backup of the current xmltv subdirectory After unzipping, restart SageTV, this will reload the classes. The translation of categories happens just before the show is committed to SageTV. This makes it possible to translate category combinations rather than just single categories (also handy if you want to reverse the categories). If the category combination is not configured the categories will be translated seperately. Only the first two resulting categories will be used (any single category can be translated to a category combination). I try to avoid ending up with the same category being specified twice, but I think I'd better rewrite part of that function so it will be more consistent. Only shows have not yet been started are updated. Shows that already have started, or are in the past, are not updated. For those interested in the source: The testcases in the Eclipse project use a mock object generated by MockCreator. Tell me what you think, L8r, Demideus Install
The plugin doesn't need to be configured. If you're fine with the defaults, you can simply ignore the configuration options. If however you want to change some of the defaults you can create a xmltv.properties file in the SageTV directory. Below is the 'documentation' for the configuration options. It may also be used as a template. Unfortunately, this forum does not lend itself to preformatted text. So this documentation, of necessity, is not well-spaced... Update 28-11-2004
Last edited by Demideus; 04-26-2006 at 02:17 PM. Reason: Update |
#2
|
||||
|
||||
Great idea. Just wanted to say thanks for this plugin! For everyone's reference, if you use TVxb, this is the plugin you must be using. There are two others which works (Sage doesn't hang) but they have other issues.
|
#3
|
|||
|
|||
This is the best XMLTV importer I've found but does it support multiple lineups?
|
#4
|
||||
|
||||
No, multiple lineups haven't been requested yet.
That being said, I'll probably be able to find some time to get that in before the end of the year. I'm thinking of having the providers (there seems to be one lineup of channels per provider) configured in xmltv.properties and allowing multiple configuration files per provider (to allow for common parts in the configuration). |
#5
|
||||
|
||||
/me raises his request hand!
Quote:
__________________
If you're not cheating, your not trying... My sage rigs: Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV. Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv. |
#6
|
|||
|
|||
Awsome! I'm looking forward to this
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
The plugin has been updated.
Multiple lineup support has now been added. For this multiple configuration files have to be used. Also the provider name must be set in each of those configuration files to identify the lineup to which that configuration belongs (multiple configurations per lineup are possible). I'm only using a single lineup myself, so I hope I've got this right. I peeked at Nielm's multi-lineup xmltv import plugin to see how he solved it (documentation for building a plugin is rather scanty). Thanks Nielm I've also added some extra stuff. Tell me if this works... |
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
I seem to have goofed on the attachments dialog.
Try again.... |
#11
|
|||
|
|||
thanks for all your work, Glad to see categorys again.
Just one problem I'm having, since most of this is over my head, what command do I put in, to retain the providers channel order ? because the only importer that keeps the channel order (on my system) is corys old xml plugin. thanks |
#12
|
||||
|
||||
thank you for this! Cant wait to try it out.
I.
__________________
If you're not cheating, your not trying... My sage rigs: Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV. Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv. |
#13
|
||||
|
||||
First of all many thanks for the great plugin
I have installed it on a new 4.1.3 install with the uk xmltv data and it worked like a charm. Worth a note here that the UK Sky Satellite channel remapping is a nightmare and one thing that always scares me if I have to redo my sources for any reason. This is one massive headache removed now thanks to the remapping in the properties file. Cheers! For any UK people out there I have a (currently) up to date channel property entry attachment for you here: http://forums.sagetv.com/forums/show...246#post133246 Now to look into those extra options Last edited by MadAxeMan; 01-07-2006 at 12:57 PM. |
#14
|
|||
|
|||
I noticed that the new zip file doesn't include a xmltv.properties. Is it supposed to be created on the first import? It didn't for me. Anyway.. I still have my old file so I used that.
Another question.... is it possible to exclude channels? I have two xml files and I need just three channels from the second. I could let the plugin import all channels and then manually disable those I don't need but it pollutes the channel setup since most channels are there twice. Also it would be nice to have it saved in a properties file for a reinstallation of Sage |
#15
|
||||
|
||||
Quote:
If this was the way that your old plugin worked then the easiest way to restore your channel numbers would be to specify them in your xmltv.properties file. Code:
channel.1.numbers=1 channel.2.numbers=2 channel.3.numbers=3 #etc... Unfortunately Sage does not offer a way to remove the unwanted channels that have been added while you were using my plugin. At least you can disable them as needed... |
#16
|
||||
|
||||
Quote:
The configuration was always meant as an option. If you don't want to use it, it will write an error to the xmltv.error.log (maybe I should suppress that for xmltv.properties...) and continue with only the defaults. Quote:
Simply list all the xmltv channel ids that you do want to include in this property. Please note that this setting is used for all xml files that are specified in this configuration. To use that setting only for the second xml file you might want to use an additional configuration file: xmltv.properties: Code:
configurations=xmltv.properties,xmltv2.properties
xmltv.files=epgdata1.xml
#insert the rest of your configuration here...
Code:
include=xmltv.properties
xmltv.files=epgdata2.xml
channel.ids=id1,id2,id3
|
#17
|
|||
|
|||
Thanks Demideus that did it!
Now I'm gonna try the multiple lineup support so I'll probably be back soon |
#18
|
|||
|
|||
Hi Dedimus,
I have to say that the config part looks very intimidating for someone like me. Do you think it would be possible to post your config here (you are dutch right?) so i can see how you do it? A lot of terms i don't understand. I would like to use colors for sports, movies and series for instance. I have no idea how to do that. Thanks in advance, Henk99
__________________
XP Pro SP2, SageTV v5.02.90, Athlon XP 3000+ (FSB 333 MHz), 2GB DDR RAM PC3200, 36 GB Western Digital Raptor, 200 GB Western Digital harddrive, Asus Radeon 9600 XTR, Plextor PX-708 8x DVD-/+RW, Pioneer 120S 48x CD-RW, PVR 150 MCE (2). Hauppauge MVP. |
#19
|
|||
|
|||
henk
If I remember correctly you can only use colors for Sages predefined categories which are movie, news and sports event. First your epgdata.xml needs to have the category tag for all programmes. I.e: Code:
<programme start="20060112083000 +0100" stop="20060112090000 +0100" channel="Eurosport"> <title>Rally</title> <desc>Dakar 2006, etapp 11: Kayes-Bamako (705 km). </desc> <credits /> <previously-shown start="20060111" channel="Eurosport" /> <category>Sport</category> </programme> Code:
translate.category.Film=Movie translate.category.Nyheter=News translate.category.Sport=Sports event |
#20
|
|||
|
|||
Hmmmm...ok, thanks for your detailed answer
I will try to get this going, see what happens. I'm not very good at these things. I am already glad i even have epg in sage...lol Henk99
__________________
XP Pro SP2, SageTV v5.02.90, Athlon XP 3000+ (FSB 333 MHz), 2GB DDR RAM PC3200, 36 GB Western Digital Raptor, 200 GB Western Digital harddrive, Asus Radeon 9600 XTR, Plextor PX-708 8x DVD-/+RW, Pioneer 120S 48x CD-RW, PVR 150 MCE (2). Hauppauge MVP. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|