You are here

Active source detector for graping

1 post / 0 new
sami.almorshedi
Offline
Joined: 7 years
Last seen: 7 years
Active source detector for graping

Hi everyone,

I have a question about keeping alive our EPG. For example, I wanna grap "4Music" from UK country. There is 5 source for this channe:

  •   <channel update="i" site="m.tvguide.co.uk-index" site_id="506" xmltv_id="4Music">4Music</channel>
  •   <channel update="i" site="radiotimes.com" site_id="1544" xmltv_id="4Music">4Music</channel>
  •   <channel update="i" site="tv.sky.com" site_id="1758" xmltv_id="4Music">4Music</channel>
  •   <channel update="i" site="tvguide.co.uk" site_id="506" xmltv_id="4Music">4Music</channel>
  •   <channel update="i" site="tvguideuk.telegraph.co.uk" site_id="1438" xmltv_id="4Music">4Music</channel>

As you know, GP does not allowe that have duplicate xmltv_id in config file. And also I wanna use the source that now is active and has data. Because I need keep my EPG full and useful all the time. What is the solution?

How can I test these 5 source and use the source that is active and has data in the moment? How we can switch between them real-time?

In additional, It`s better for me to have programs by default xmltv_id like "4Music" not "4Music1" or "4Music2".

Do you have any suggestion?

 

Brought to you by Jan van Straaten

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