How is data (tvguide).xml written?

Discussion of Version 3 and developing lua grabbers
Post Reply
dancake
Posts: 4
Joined: Sun Feb 08, 2009 3:03 pm

How is data (tvguide).xml written?

Post by dancake » Fri Feb 13, 2009 6:48 pm

Hi, Alan.

I am running XMLTV gui with Great results on Mediaportal with about 70 channels. I have set up sceduler to grab every morning at 4.00am and it works fine on my system.

A friend is having problems, however which seems related to the Auto-import function of mediaportal (it checks for an Updated XML every minute.) The manual import works but the auto import gives an error of
"An item with the same key has already been added" after 1 minute.

My question was is the XML written in real time, and can it take over a minute to complete? Or is file prepared and then written immidiately to TVguide.xml?

Web epg, for example creates 2 files;

tvguidewriting.xml is created while file is being assembled and is written to TVguide.xml when it is complete

Our thought was to write the XML to a buffer folder and initiate a transfer with task sceduler every day.

thanks fo rthe great work!

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: How is data (tvguide).xml written?

Post by alanbirtles » Fri Feb 13, 2009 7:01 pm

yes data is written directly to the file. you could write to one file then copy/move to the other file in a batch file. eg:

Code: Select all

xmltvgui /grab
move temp.xml tvguide.xml

dancake
Posts: 4
Joined: Sun Feb 08, 2009 3:03 pm

Re: How is data (tvguide).xml written?

Post by dancake » Fri Feb 13, 2009 7:38 pm

Thanks for the quick reply. Will give it a go!

Post Reply