Tra l'altro ho notato che nella guida il campo <sub-tittle> non viene visualizzato l'ho quindi eliminato dall'ultima versione del software.
Noooo, the <sub-title> tag is skin dependent !
A sample of the first release of your EPG downloader, with the <sub-title> tag:
Code:
<programme start="20080121090500 +0100" channel="894">
<title lang="it">Happy Days</title>
<sub-title lang="it">2' Stagione Ep.13 - 'Il caposquadra'</sub-title>
<desc lang="it">Richie Cunningham, scelto come leader del gruppo R.O.T.C., non sa quale comportamento adottare nei confronti dei suoi compagni di squadra.</desc>
<category lang="it">Sit Com</category>
<category lang="it">Intrattenimento</category>
</programme>
In my personal MP skin I use the tag #TV.Guide.EpisodeName, this one is the result:
Ma in effetti la soluzione migliore è quello di reintegralo, aggiungere i tag che tu seggerisci e lasciare la descrizione comunque per intero.
I suggest you:
1) strip out all chars from <sub-title> tag before the first comma (in my sample, the string 2' Stagione Ep.13 - )
2) strip out all commas (convert 'Il caposquadra' to Il caposquadra) and this one is the final <sub-title> tag result;
3) get the number before ' Stagione Ep. string and the number after the same string and build the <episode-num system="xmltv_ns"> tag;
Of course, bug segnalation: if a tvguide.xml file already exists, no update is performed.
At this moment, I need to manually delete the tvguide.xml before run your epg grabber.
Best regards,
xavier.