SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2005, 12:21 PM
owilsky's Avatar
owilsky owilsky is offline
Sage Aficionado
 
Join Date: Dec 2004
Location: Germany
Posts: 447
Thumbs up First runs and reruns for XMLTV users: XMLTV-Tool UPDATED: V 0.2

Hi there,

I created a tool for all xmltv users (well, actually I created it for me, but maybe it is of some use for anybody )

It serves two purposes and so there are two text boxes:


1. Properly mark first runs and reruns.


It parses the XML file and searches the titles for your favourites.
Please only enter one title per line in the left text box.

Example:
--------------
Enterprise
Six feet under
--------------

The search is not case sensitive, so the following entries would have the same result:
--------------
enterprise
six feet UNDER
--------------

XMLTV-Tool looks for entries which have identical titles, sub-titles and descriptions.
If an identical entry is found, a <previously-shown> tag is added.
Hopefully, SageTV or the XMLTV plugin will support it.
You need an xmltv plugin that supports the <previously-shown> tag. Download it here: http://forums.freytechnologies.com/f...=6589#post6589

2. Change show titles based on weekday of airing


Example:
In Germany the latest season of "The Simpsons" is aired on Saturdays. On weekdays there are reruns of old seasons

which I don't want to record but which have the same title of course.
If I add "Simpsons#6#Simpsons (Saturday)" into the right text box, in the title of each airing on Saturday

(1=Monday, 2=Tuesday, ..., 7=Sunday) "Simpsons" is replaced with "Simpsons (Saturday)", so that I can add a

favourite in SageTV and only the new season on Saturdays are recorded.

Syntax is: (one entry per line)
-------------------------------
searchtext (not case sensitive)#day of week (1=Mo...7=Su)#Replacetext (case sensitive).


General instructions:

XMLTV-Tool doesn't change the input file. (at least it shouldn't...)

An existing output file will be overwritten by XMLTV-Tool without further notice!

The entries in both text boxes are saved on closing XMLTV-Tool.

To run XMLTV-Tool in batch mode use the -batch argument:

XMLTVTool -batch
(you need to run XMLTVTool without -batch parameter to configure it first)

In batch mode conversion will start after a 5-second delay and TVXML-Tool will be closed automatically when finished.


Please don't forget to backup your XML-data before running this tool! Keep in mind that this is an Alpha-Version!


History:

V 0.1 initial release

V 0.2 06.01.2005
- new run command: run your favourite xml grabber here.
XMLTV-Tool will process this way:
1. run command in first text box and wait for it to finish.
2. import given xml
3. export new xml
- Batch mode works different now:
Launch XMLTV-Tool, fill all text boxes with your confirmation and close XMLTV-Tool. Configuration will be saved.
Now launch XMLTV-Tool with "XMLTVTool -batch".
-in and -out parameters from version 0.1 are not supported anymore.
- cosmetic changes

Any questions or comments? Please feel free to post...

Oliver
Attached Files
File Type: zip XMLTVTool.zip (205.4 KB, 444 views)
__________________
Oliver Kötter
------------
Check this thread for importing German TV Data into SageTV

Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an
Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz)
My avatar shows the world's best composer!!!

Last edited by owilsky; 01-11-2005 at 10:24 AM. Reason: Uploaded V 0.2 and changed docs for new version
Reply With Quote
  #2  
Old 01-09-2005, 03:12 AM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
Awsome, will give this a try as soon as I am done watching the Seahawks/Rams and Jets/Charger games. Thanks!
Reply With Quote
  #3  
Old 01-11-2005, 10:43 AM
redman's Avatar
redman redman is offline
Sage Advanced User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 159
Awesome,
This just checks the xml file though. It doesn't check any previously shown / watched that are not in the xmltv file.
Most re-runs occur when the stations repeat the season of a show not just repeat episodes in a week.
I know that the web server has a list of all shows watched / shown as well (I think its from the wiz.bin)
It would be cool if it could keep track of older shows outside of the xmltv.

Has anyone had any thoughts about some type of database or file that could add / append new epg data into it, to keep track?
__________________
"I Love it when a plan comes together"
Reply With Quote
  #4  
Old 03-17-2005, 10:06 AM
sandro sandro is offline
Sage User
 
Join Date: Dec 2004
Posts: 5
reruns

Hi

It's a nice tool what you build up here, but i would like to see more features :-))
I think i can remember you live in Germany, there are a lot of shows which are broadcasted one in the evening and on the next morning. the show in the morning is a rerun of the show the day before. (example "RTL Gute Zeiten Schlechte Zeiten"). If i schedule this with favorites i get all two airings recorded (one old in the morning and one new in the evening). My xmltv source is tvmedia2xmltv.

Allready tried your Program but when i run it on my favorits all series are marked as reruns, and nothing gets recorded :-)) what did i wrong ??
Would be nice to have a feature like mark show at Mo to Fr 19:45-20:15 gzsz as first run and all others as rerun.

Any possibility to implement some kind of feature.

Ciao

Alessandro
Reply With Quote
  #5  
Old 03-19-2005, 10:35 AM
owilsky's Avatar
owilsky owilsky is offline
Sage Aficionado
 
Join Date: Dec 2004
Location: Germany
Posts: 447
Hi,

first the bad news: I will not continue development of XMLTV-Tool, because I do not use it ;-)

Now that I understand the xmltvplugin, I use a different approach.
Very importand is that a rerun uses exactly the same <title> and the same <sub-title> tag as the first run.
This way xmltvplugin creates the same show ID and recognises that it is a rerun.
I wrote a tool that creates the epgdata.xml from the German tool TV Movie Clickfinder which has the tv data in an access database.
Since this tool provides only german tv data, I will publish it in the German section of this forum when I think it is finished or stable enough for the public.
Unfortunately my PVR is being repaired at the moment so it will take some more time.

Oliver
__________________
Oliver Kötter
------------
Check this thread for importing German TV Data into SageTV

Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an
Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz)
My avatar shows the world's best composer!!!
Reply With Quote
  #6  
Old 03-26-2005, 07:25 AM
holozaen holozaen is offline
Sage User
 
Join Date: Nov 2004
Posts: 27
Hi Oliver

I would be very interested in your tv movie tool as I use the same XMLTV-Source.

Hope you will post a beta soon!
Reply With Quote
  #7  
Old 04-15-2005, 05:19 AM
owilsky's Avatar
owilsky owilsky is offline
Sage Aficionado
 
Join Date: Dec 2004
Location: Germany
Posts: 447
Quote:
Originally Posted by holozaen
Hi Oliver

I would be very interested in your tv movie tool as I use the same XMLTV-Source.

Hope you will post a beta soon!
Yepp, here it is:
http://forums.sage.tv/forums/showthread.php?p=96798

Have fun and please use that new thread for questions/ remarks.... not this one.

Thanks,
Oliver
__________________
Oliver Kötter
------------
Check this thread for importing German TV Data into SageTV

Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an
Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz)
My avatar shows the world's best composer!!!
Reply With Quote
Reply


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:21 PM.


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