NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) ZTools and UltraXMLTV v
« Previous 1 2 3 4 5 … 12 Next »
Can I Pre-Process the xml Files?

 
  • 0 Vote(s) - 0 Average
Can I Pre-Process the xml Files?
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#1
2009-03-07, 09:00 PM
Today, I posted a "Wishlist" item to have the ability to define (possibly in CONFIG) the ability to add/subtract some time to/from the times in the program guide. I want to do this because the technicians that maintain the cable service for my complex (by an exclusive contract) are incompetent and occasionally point the satellite receivers to the wrong feed so show listings end up being three hours off because they point at an East Coast feed rather than a West Coast feed like they are supposed to.

It occurred to me that if I were to go into the xml file before Ultra runs, I could have a program I write for myself do the manipulation of the start and end times of the programs in the xml files.

Is there a way I can schedule my own program to run before Ultra does each day?

Do you see any problems I would introduce by doing this?
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#2
2009-03-08, 02:05 AM
Looks Like It Will Be Simple To Do.

zehd,

I ran a couple experiments and found that if I play with the +0000 filed after the Start Time and Stop Time I can have Ultra modify the start and end times for me. If I set the field to +0100 it moves the date/time to be one hour earlier, etc.

I plan to have my program called by run-xmltv.bat right after xmltv gets a fresh xml file and before Ultra gets called. It will modify the +0000 fileds for the channels that have to be time shifted.

I'm not sure why your program modifies the times like it does but it will save me a little bit of processing. Thanks Big Grin
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#3
2009-03-08, 04:12 AM
LewE Wrote:Looks Like It Will Be Simple To Do.

zehd,

I ran a couple experiments and found that if I play with the +0000 filed after the Start Time and Stop Time I can have Ultra modify the start and end times for me. If I set the field to +0100 it moves the date/time to be one hour earlier, etc.

I plan to have my program called by run-xmltv.bat right after xmltv gets a fresh xml file and before Ultra gets called. It will modify the +0000 fileds for the channels that have to be time shifted.

I'm not sure why your program modifies the times like it does but it will save me a little bit of processing. Thanks Big Grin

Ultra 1 had an Hour offset built in. I have the control on the v2 form, just hid it cause I haven't worked it... If you think this is import, I'll have a boo...

In my opinion this is something that the enhnacer should handle rather than something before or after
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#4
2009-03-08, 05:21 AM
zehd Wrote:Ultra 1 had an Hour offset built in. I have the control on the v2 form, just hid it cause I haven't worked it... If you think this is import, I'll have a boo...

In my opinion this is something that the enhnacer should handle rather than something before or after
I'm happy with the way Ultra2 handles this right now.

The situation I am taking care of is cable technicians that point a receiver at the wrong satellite feed. This may last for a couple days or for many months before they point it to the feed that corresponds to the listings I get for them from Schedules Direct.

If Ultra can handle this on a specific list of channels, some of which may need +3 hour offsets added and others need -3 hour offset added, this would be great and save me some work of writing my own utility to handle it. I think my case is the one in a million situation so having this handled by another tab in Ultra may just cause confusion to most of your users.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#5
2009-03-08, 05:40 AM
LewE Wrote:I'm happy with the way Ultra2 handles this right now.

The situation I am taking care of is cable technicians that point a receiver at the wrong satellite feed. This may last for a couple days or for many months before they point it to the feed that corresponds to the listings I get for them from Schedules Direct.

If Ultra can handle this on a specific list of channels, some of which may need +3 hour offsets added and others need -3 hour offset added, this would be great and save me some work of writing my own utility to handle it. I think my case is the one in a million situation so having this handled by another tab in Ultra may just cause confusion to most of your users.

Well, a while ago, someone had asked for a time offset, but it was for all channels and that was what I was planning on putting on back in. Having different timeoffset for different channels isn't out of the question but more work for sure. As far as being rare, I would like Ultra to be flexible for many different circumstances.

I already have it changing the ids for each channel, so that the final xml is more readable. Changing the timeoffset for isn't that far off....

Perhaps, you should just yell at your installers..
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#6
2009-03-08, 05:46 AM
LewE Wrote:I'm not sure why your program modifies the times like it does but it will save me a little bit of processing. Thanks Big Grin

Well that is whurslton's doing taking the inherent timeoffset of the original xml and adjusting the times to effectively 'remove' the offset.

There seemed to be a channel offset program around, and I just recently saw the thread again, but I can't find it...

Oh. Looks like I have the file. I believe that you could call it and then read the help
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#7
2009-03-08, 08:58 AM
zehd Wrote:Well that is whurslton's doing taking the inherent timeoffset of the original xml and adjusting the times to effectively 'remove' the offset.

There seemed to be a channel offset program around, and I just recently saw the thread again, but I can't find it...

Oh. Looks like I have the file. I believe that you could call it and then read the help
Thanks.

This program does pretty much the same that I was going to do in the program I planned to write. It stuffs an offset into the +0000 filed after the start and stop time.

The only hiccup I had as that it took me a couple tries to figure out that I couldn't use channel names like HBO but had to use the Channel IDs like I10240.labs.zap2it.com
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#8
2009-03-08, 09:47 AM
zehd Wrote:Perhaps, you should just yell at your installers..
I could yell at the installers but I would end up waiting less time for the proverbial monkeys to type out a Shakespeare play than for these guys to properly configure the equipment they maintain.

I have been waiting over 9 months for them to point one of their receivers to the same satellite feed that they say they are providing. The zap2it listings are 3 hours ahead of the actual programming I would get. It wasn't a channel I watch all that often so I let it slide by until they messed up a couple channels I watch regularly.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#9
2009-03-08, 04:15 PM
LewE Wrote:Thanks.

This program does pretty much the same that I was going to do in the program I planned to write. It stuffs an offset into the +0000 filed after the start and stop time.

The only hiccup I had as that it took me a couple tries to figure out that I couldn't use channel names like HBO but had to use the Channel IDs like I10240.labs.zap2it.com

THat's where you might like to use it After Enhnacing. In Ultra, I change the IDs so that its far more readable...
Code:
    <channel id="I2.28460209.microsoft.com">
        <display-name>2 TVGN</display-name>
        <display-name>2</display-name>
        <display-name>TVGN</display-name>
        <display-name>TV Guide Network</display-name>
        <display-name>Cablecast</display-name>
    </channel>
    <channel id="I3.28456112.microsoft.com">
        <display-name>3 CFCN</display-name>
        <display-name>3</display-name>
        <display-name>CFCN</display-name>
        <display-name>CFCN (CTV)</display-name>
        <display-name>Canadian Independent</display-name>
    </channel>
    <channel id="I4.197317694.microsoft.com">
        <display-name>4 CJCO</display-name>
        <display-name>4</display-name>
        <display-name>CJCO</display-name>
        <display-name>Canadian Independent</display-name>
    </channel>


Code:
<channel id="2.TVGN.0">
    <display-name>2 TVGN</display-name>
    <display-name>2</display-name>
    <display-name>TVGN</display-name>
    <display-name>TV Guide Network</display-name>
    <display-name>Cablecast</display-name>
  </channel>
  <channel id="3.CFCN.1">
    <display-name>3 CFCN</display-name>
    <display-name>3</display-name>
    <display-name>CFCN</display-name>
    <display-name>CFCN (CTV)</display-name>
    <display-name>Canadian Independent</display-name>
  </channel>
  <channel id="4.CJCO.2">
    <display-name>4 CJCO</display-name>
    <display-name>4</display-name>
    <display-name>CJCO</display-name>
    <display-name>Canadian Independent</display-name>
  </channel>

The last digit of the string is appended to be sure that even if there are duplicate channels (which there shouldn't be but) are unique
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#10
2009-03-08, 06:49 PM
I've had a eureka moment, and I know how I can add Individual Channel time Offsets. I should have that for you by tomorrow...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Beta: UltraXMLTV Post-Process Renamer zehd 25 21,970 2011-11-14, 06:18 AM
Last Post: Ski098
  Error process cannot access cache because it is in use by another process dennit 5 3,745 2009-07-22, 04:18 AM
Last Post: zehd
  Transcoding TS files without mediaMVP Sunken 5 4,417 2009-02-27, 06:32 AM
Last Post: stustunz
  ZProcess2 - The case of the killed process... hockeyrink 3 2,342 2008-08-24, 05:27 AM
Last Post: hockeyrink
  ZProcess dvr-ms files Caseyjones 3 2,507 2008-05-06, 02:15 AM
Last Post: zehd
  ZProcess: MOV Files pbb 2 1,927 2008-04-30, 02:21 PM
Last Post: pbb
  ZProcess2 not creating files and crashing MVP punchdrunk717 12 4,280 2008-03-23, 04:53 PM
Last Post: zehd
  Zprocess2 and dvr-ms files Rapper 1 1,799 2007-10-29, 02:35 AM
Last Post: zehd
  Will ZRENAME rename all files associated with the mpeg? dvasco 2 1,943 2007-10-17, 02:16 AM
Last Post: dvasco
  ZProcess for standard mpg files? FlatEarth 8 2,847 2007-09-07, 02:31 AM
Last Post: zehd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode