You are here

.ini to generate a .xml file full of details

15 posts / 0 new
Last post
nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years
.ini to generate a .xml file full of details

Hi,

I´ve written this post several months ago without any feedback...

I write here again just to request help in order to create an .ini file to add the information of channels (and your programs) which there isn´t any place to get that info... and generate a .xml file with full of details.

Not sure if this is possible... maybe with one .ini for each channel and put on it all the programms for all the week?. I like to know if this is possible because if can be done, I would like to try to add all the information like:
<title lang="es"></title>
    <desc lang="es"></desc>
    <category lang="es"></category>
    <icon src= />

Keep waiting your comments.

Thank you and best regards.

 

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years

Blackbear, my friend laugh... I haven´t seen that before... Believe me.

This is just what I was looking for... thank you very much. I´ll take a look and if I have any doubt I´lll write to you, although it seems to be quite clear.

Thanks again.

 

 

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years
Blackbear199 wrote:

the above is good for shows  that repeat daily.for what your sayng for a weekly data and its different week to week then you will need to use something else.

merge-xmltv.ini is what you would want.you would need to create your data.xml manually and add the data in the same format as webgrab would create it(and your example shows).now if this schedule is repeated week after week i can help you modify some stuff so you dont have to update the date in the start="xxx" and stop="xxxx" fields.we would just add the start/stop time here(without the date component) and have webgrab calculate this for us.

yes...  my approach is try to generate an .xml guide with these programs per day and week:

So with the fixed.ini I could generate the programs for one day, but for the next days it seems not possible to do it, right?

This makes me to start to think in your second suggestion... I should create an .xml guide by my self preserving the same structure as WebGrab generate but, with all the programs listed per day and week, it´s correct?

I ask you that because my intention is try to generate several .xml guide files with information like the above chart and re-generate it once per week with the new dates/times for each program.

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years

Hi,

Just an update of what I´m doing... I attach the WebGrab++.config.xml file with the programs from monday to friday.

I´ve created this structure...

<channel update="f" site="fixed" site_id="
  The progrmas for that day...
  ####"
  xmltv_id="RadioMARCA_monday">RadioMARCA_monday</channel>
  <channel update="f" site="fixed" site_id="
  The progrmas for that day...
  ####"
  xmltv_id="RadioMARCA_tuesday">RadioMARCA_tuesday</channel>
  <channel update="f" site="fixed" site_id="
  The progrmas for that day...
  ####"
  xmltv_id="RadioMARCA_wednesday">RadioMARCA_tuesday</channel>
  <channel update="f" site="fixed" site_id="
  The progrmas for that day...
  ####"
  xmltv_id="RadioMARCA_thursday">RadioMARCA_tuesday</channel>
  <channel update="f" site="fixed" site_id="
  The progrmas for that day...
  ####"
  xmltv_id="RadioMARCA_friday">RadioMARCA_tuesday</channel>

Well, in this point. My doubt is... how can I differentiate the shows of each day of the week??

I had to give this identifiers: xmltv_id="RadioMARCA_friday">RadioMARCA_tuesday</channel> for each day (check the log file because if I write in all of them this:

xmltv_id="RadioMARCA">RadioMARCA</channel>

I get this error when I run it:
https://pastebin.com/raw/iCZhtPBx

Keep waiting your comments...

Best regards.

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

I have the same problem as you. What I was able to do was create a fixed for each day of the week. The only problem is that I have to change the days at hand ... What I'm doing is creating the epg for the whole year...

Attachments: 
nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years

@Blackbear, I have no words for this... you are a complete genious!

I was struggling with my brain to try to understand how the programs change in the days. This is the best solution from my point of view.

Thank you very much for all.

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

The ini is brutal. But is it possible for him to always grab the 7 days of the week? It's because when I take the epg to Sunday and I update on Monday the radios are without epg ... grateful for the attention.

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months
The webgrabber always stops on Sunday. if I take the epg on Sunday I only get the epg for that day.
maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

I think I've figured out how to do it ... "site {episodesystem = onscreen | firstday = 01234560123456}".

Do you think that makes sense ??? so will always grab the 7 days of the week and does not stop on Sunday.

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

I wish it would change to 14 days ... because I did not want to get to Sunday and not have epg for the rest of the week. I would like to always have at least the next 7 days always in the epg ..

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

Can you please make the change for 14 days ??? I've already tried everything and I can not get it ... Thank you very much.

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years
maxcalavera wrote:

Can you please make the change for 14 days ??? I've already tried everything and I can not get it ... Thank you very much.

Sorry @maxcalavera just to understand it... Which is the problem to run the grabber on Monday instead of Sunday?

maxcalavera
Offline
Donator
Joined: 7 years
Last seen: 10 months

Fantastic, great ini file that spared me immense work. Works the 1000 wonders. Thank you so much for the fantastic work.

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years

Hi!
Regarding this issue... I´ve created my self config.xml with the programs that I want, but I get these errors when I run it:

[Error ] Unable to update channel Radio MARCA
[Critical] Generic syntax exception:
[Critical] message:
[Error ] Current culture: en-GB
[Error ] time parsing error : String was not recognized as a valid DateTime.
[Error ] stoptime time scrubbed : 3.
##image:http://e00
[Error ] computer date/time format: 21/06/2018 15:35:07
[ Info ] Existing guide data restored!

I can´t understand why the Current culture is in English when I setted up my .ini in Spanish

And about the time parsing error... I´ve been reviewing the config.xml file but I haven´t seen any relevant on it.

Could you please help me?

nickiman
Offline
nickiman's picture
Donator
Joined: 9 years
Last seen: 3 years
Blackbear199 wrote:

its because you have Liga 1|2|3.
u cannot use | in your data as wegrab uses these internally as separators for programs.
change it to Liga 123 or Liga 1-2-3 or whatever you want,just dont use the |.

Solved! Thank you

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