2014-04-17, 22:15
(2014-04-17, 21:50)ylafont Wrote:(2014-04-17, 21:26)Lunatixz Wrote: ::EDIT::
Nevermind looked at your code, so you are using re to pattern match channel name in xmltv file?
I played around with pattern matching, but can't get the hang of reg expression... my code couldn't tell the difference between WCBS,WCBSDT,WCBSDT2, etc since it would find CBS in all three matches...
Match on Channel Number not Name.
The scenario you describe was exactly the problem I foresaw ,which could be handled by Regex (But i not the familar). another was the following, There is no way of matching the following channel based on channel name.
I126.45266114 126 MILH 126 MILH Military History Channel Satellite 126 - Military Histor.strm
Also the Generated xmltv.tab file gave me a handy reference on what was matched and I was able to isolate the channel I wanted into a separate folder, run the script and have correct setting2.xml file with only the channels needed. - Very Handy!
Edit::
if the stream file could be save with the channel call Letters (MILH) as standard, it would help. right now that is not the case.
I quickly browsed your code... thought I saw "display-name" and pattern match near each other
Does hdhomerun setup do that bad a job matching display-names with the strm? I only use OTA channels so my matches are pretty spot on, I have no idea how big a headache 700 channels can be.
I'm always open to suggestion how to improve my addon. If you have ideas... please let me know. If i could just get the hang of reg ex wildcards, I could come up with a better pattern match...