- Thread starter
- #111
thanks, i added it and am downloading all the infos again right now.
one question though, in this implementation of yours, if the situation comes up where the first char is a "/", does it now delete the whole string, making episode-nums empty, or is it just deleting the "/"?
thanks again =)
edit:
Didnt work
Here the link to a show where this happens:
http://www.tvtv.de/tvtv/web/program...0&lang=de&epgView=list&groupid=0&tref=Program
in the xml:
Code:<episode-num system="xmltv_ns">./104.</episode-num>
log:
Code:2012-03-06 21:43:54.063035 [XmlTvImporter(16)]: XMLTVImport::CorrectEpisodeNum, could not parse '/104' as episode/episodes
I assumed the value was /104. Should have known better. For ./104. the solution becomes:
*end loop
temp_4.modify {addstart('episode' not ~ "staffel")|.} * extra . if no staffel
temp_4.modify {remove(".")|'temp_4'} * clear if only .
temp_3.modify {substring(type=char)|'temp_4' 0 2} *get the first two chars
episode.modify {remove|'episode'}
episode.modify {addstart|'temp_4'.}
episode.modify {remove('temp_3' "./")|'episode'} * clear if first two chars are ./
This completely removes the episode-num element (it's rubbish , don't you agree?)
If you just want to remove the / (assuming episode 106 is meant = .106.) the last line becomes:
episode.modify {remove('temp_3' "./" type=char)|'episode' 1 1} * clear the / if first two chars are ./
WG++Maker .. Jan