You are here

How to rename xml files names

5 posts / 0 new
Last post
janKO
Offline
Donator
Joined: 10 years
Last seen: 1 hour
How to rename xml files names

I have several xml files on my PC in folder WebGrabXML

So link should be:

url_index {url|file://d:/WebGrabXML/|channel|.XML}

 

XML files names are:

TV1_20170407_20170417_EPG.XML
TV2_20170407_20170417_EPG.XML
TV3_20170407_20170417_EPG.XML
TV4_20170407_20170417_EPG.XML
TV5_20170407_20170417_EPG.XML

 

20170407_20170417 this date data is everyday different and useless...how to remove them to get this XML files names:

TV1.XML (or maybe TV1___EPG.XML or TV1EPG.XML)
TV2.XML (or maybe TV2___EPG.XML or TV2EPG.XML)
TV3.XML (or maybe TV3___EPG.XML or TV3EPG.XML)
TV4.XML (or maybe TV4___EPG.XML or TV4EPG.XML)
TV5.XML (or maybe TV5___EPG.XML or TV5EPG.XML)

 

When I manual rename files this link works without problems:

url_index {url|file://d:/WebGrabXML/|channel|.XML}

janKO
Offline
Donator
Joined: 10 years
Last seen: 1 hour

yes thanks for help...you are right..dont work...probably because is xml file and not web page....

Its slovenian FTP site pop-tv.si ... Jan made this first FTP ini for me long time ago smiley

Jan use this number in file name for date... ini still work but i have manually correct because this line :

 

index_variable_element.modify {calculate(scope=urlindex format=date,yyyyMMdd)|'now' 05:59:00 +} *8 days after today

every friday they add 2 more days and ini dont work anymore so I change to

index_variable_element.modify {calculate(scope=urlindex format=date,yyyyMMdd)|'now' 07:59:00 +} *10 days after today

They have 6 files but VOYOTV is not usable...  they make update monday to friday (after 13.00 CET to 18.00 CET)

I have 2 ini... 1 for localhost and 1 for FTP...both work OK ... 

janKO
Offline
Donator
Joined: 10 years
Last seen: 1 hour

05 = 5 days

59 = 2 days and 11 hours

00 = 0 hours

and this is work monday to thursday but not in friday ... i dont understand why in friday dont grab at least 8 days also...

when I change to 07:59:00 works again

07 = 7 days

59 = 2 days 11 hours

00 = 0 hours

Maybe Jan can explain ?

 

janKO
Offline
Donator
Joined: 10 years
Last seen: 1 hour

Updates are only from Monday to Friday
Saturday and Sunday never...

Monday to Thursday = today + 8 days
Friday = today + 10 days

Sometimes they have problems and then not all files updated as should be (only 5-7days)
In 98% updates time are 12:00 to 18:00 CET
And when not finished all the old files is still there... Last Files from fridays is on FTP till mondays...

janKO
Offline
Donator
Joined: 10 years
Last seen: 1 hour

OK, thanks yes

works just fine but today no go...

index_temp_3.modify {calculate(index_temp_2' not "pet" format=date,yyyyMMdd)|'now' 08:00:00 +} *8 days after today everyday except friday
index_temp_3.modify {calculate('index_temp_2' "pet" format=date,yyyyMMdd)|'now' 10:00:00 +} *10 days after today for friday only

 

when i change this

index_temp_3.modify {calculate(index_temp_2' not "pet" format=date,yyyyMMdd)|'now' 10:00:00 +} *8 days after today everyday except friday

works again smiley

 

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl