Hi,
Just wanted to ask if there is any way to combine the same channels in different site.ini's when grabbing the data using the config file? See below for more details and examples
I hope this is not asked anywhere already.
I am not very experienced with messing with the siteini.pack files or the configuration so I might have missed something obvious in the documentation, but I have searched for almost an hour with no luck.
I hope somebody can help?
More details:
I am grabbing from the siteini.pack/Denmark/tvtid.tv2.dk.ini so that my config.xml is something like this (just one channel as an example):
...
<channel xmltv_id="DR1 HD" site_id="12050" site="tvtid.tv2.dk" update="i">DR1 HD</channel>
...
Although I get most programmes from this channel and siteini, two other siteini.packs supply more details for the same programme, but does not cover all the programmes (perhaps 60 per cent or so) - and is timeshifted two hours.
I have tried to put the channel data in such as this:
...
<!-- MAIN SOURCE: Tv-tid -->
<channel xmltv_id="DR1 HD" site_id="12050" site="tvtid.tv2.dk" update="i">DR1 HD</channel>
<!-- EXTRA SOURCE: Tv-guide -->
<channel update="i" site="tvguide.dk" site_id="DR1" xmltv_id="DR1">DR1</channel>
<!-- EXTRA SOURCE: ViaSat -->
<channel update="i" site="viasat.dk" site_id="B_3" xmltv_id="DR1">DR1</channel>
...
But there are several problems with this:
1) The xmltv_id's are the same for the two "extra" channels and different from the "main" channel.
Maybe I can change the id and this will solve the problem??
2) If it works I suspect I will probably get 3 almost identical programmes (if they exist in all sources) instead of a single merged programme?
If so, will timeshifting the last two channels solve this problem?? And how do I do this?
3) Some of the channel names are a bit different from each other (are postfixed with HD) - so even if a merge could work, these programmes would probably not be matched?
Can I change the channel names in the siteini.pack?
4) It seems there are some character encoding issue with the extra source "tv-guide" that the other two does not have - this is not, per say, a merge problem.
Can I change the character encoding when grabbing so it conforms to my need?
-----
EXAMPLE:
Here are the same programme in each of the siteini.pack-channels - I have underlined some of the problems mentioned:
MAIN SOURCE (TV-tid):
<programme start="20170516015500 +0200" stop="20170516024500 +0200" channel="Canal 9 HD">
<title lang="da">Fringe</title>
<desc lang="da">Da Olivias Dunhams makker næsten bliver dræbt ved efterforskningen af et flystyrt, må hun tage nye midler i brug for at opklare de utrolige begivenheder. Olivia finder derfor frem til den excentriske forsker Dr. Walter Bishop, der har været indlagt på en sindssygeanstalt de sidste 20 år, samt dennes søn Peter. Den smågale forsker er ekspert i den eksperimenterende videnskab kaldet(n)</desc>
<episode-num system="onscreen">S0E19</episode-num>
<video>
<quality>HD</quality>
</video>
</programme>
EXTRA SOURCE (Tv-guide):
<programme start="20170516035500 +0200" stop="20170516044000 +0200" channel="Canal9">
<title lang="da">Fringe</title>
<desc lang="da">Da Olivias Dunhams makker næsten bliver dræbt ved efterforskningen af et flystyrt, må hun tage nye midler i brug for at opklare de utrolige begivenheder. Olivia finder derfor frem til den excentriske forsker Dr. Walter Bishop, der har været indlagt på en sindssygeanstalt de sidste 20 år, samt dennes søn Peter. Den smågale forsker er ekspert i den eksperimenterende videnskab kaldet "fringe science". Olivia Dunham står nemlig over for en række gådefulde hændelser som teleportation, parallelle universer, radioaktive effekter og sjældne sygdomme, og hun får brug for Dr. Bishops ekspertise, der ligger langt uden for normale forskningsområders rationelle og plausible forklaringer og, opdager Olivia, også uden for den normale bevidstheds område. Original title : Fringe(n)</desc>
<category lang="da">Amr. spændingsserie.</category>
<episode-num system="onscreen">E19</episode-num>
</programme>
EXTRA SOURCE (ViaSat):
<programme start="20170516035500 +0200" stop="20170516044500 +0200" channel="Canal9">
<title lang="da">Fringe</title>
<desc lang="da">Amerikansk gyserserie. Da Olivias Dunhams makker næsten bliver dræbt ved efterforskningen af et flystyrt, må hun tage nye midler i brug for at opklare de utrolige begivenheder. Olivia finder derfor frem til den excentriske forsker Dr. Walter Bishop, der har været indlagt på en sindssygeanstalt de sidste 20 år, samt dennes søn Peter. Den smågale forsker er ekspert i den eksperimenterende videnskab kaldet(n)</desc>
<icon src="http://www.webgrabplus.com/B_48506772_01.JPG" />
<episode-num system="onscreen">E19</episode-num>
</programme>