Hello,
I've came across multiple problems with this site rtbf.be
The site uses 3-days index pages with hours as subpage. I could figure out some basics but I can't delete duplicate entries in titles and I can't have titles from 1 day only. Everything messes up! The indexpage uses something like this line to seperate each day:
<h5 class="date-header">
<span class="epg-day-name">Jeudi</span>
<span class="epg-day-date">3 novembre</span>
<h5 class="date-header">
<span class="epg-day-name">Vendredi</span>
<span class="epg-day-date">4 novembre</span>
<h5 class="date-header">
<span class="epg-day-name">Samedi</span>
<span class="epg-day-date">5 novembre</span>
Is there a way to define a variable element and use it for splitting index pages?: (I've defined temp_1 to result in dates used in the above lines)
index_temp_1.modify {calculate(format=date,d/MMMM)}
index_temp_1.modify {replace|/| }
Another problem is for Producer, Journaliste and other elements. I can't extract all of them.
I've uploaded my own INI (if you can call it one)...
I just figured out a way to use a variable element for splitting. I used global temp. but everything just got messier:
global_temp_1.modify {calculate(format=date,d/MMMM)}
global_temp_1.modify {replace|/| }
index_showsplit.scrub {multi(debug)|<span class="epg-day-date">'global_temp_1'|<li class="epg-grid-show-details"|full-detail-container|<div class="epg-grid-column-inner">}
And how can I calculate tomorrow's date for global_temp_2 ?
Never mind, I figured it out myself. Just another question: How can I cleanup description? I use cleanup like this:
description.modify {cleanup}
But it doesn't help. There are HTML characters in description part of the XMLTV. for example this:
or (?) at the end of titles... title examle:
I figured these as well. First problem was done with cleanup outside of scope range. Second problem can not be solved unfortunately because of spaces in titles in indexpage.
Ok I got it. Thanks for your kind reply. I haven't looked through your INI yet, but this is what I created:
Your INI seems superb! I just learnt many things from reading it! My INI would show duplicated entries which I was trying to sort it out but thanks to your reply now I know what to do from now on!