bebo-dot-dev / m3u-epg-editor

a python m3u / epg optimizer
120 stars 27 forks source link

Case Sensitive tvg-id #32

Closed ap-rose closed 4 years ago

ap-rose commented 4 years ago

Could you please add an argument to be able to match tvg-id regardless of case.

I am having issues where my EPG contains data that is not being kept due to id being case sensitive.

All EPG providers change the format of their ID making it hard to parse properly.

bebo-dot-dev commented 4 years ago

I haven't experienced this issue myself but I'll take a look to see if I can reproduce the problem and come up with something to cope with it.

ap-rose commented 4 years ago

The issue I am having is that if the m3u contain the tvg-id as lowercase (tlc.ca) it will not be matched to my data found in my epg which is defined in uppercase. (TLC.ca) and vice versa.

Is there a way too loosen the match so it is not case sensitive.

bebo-dot-dev commented 4 years ago

Yep I get the idea. I've created a branch and applied a candidate change:

https://github.com/jjssoftware/m3u-epg-editor/tree/epg-tvg-id-casing

Give this version a try and let me know how it goes:

https://github.com/jjssoftware/m3u-epg-editor/blob/epg-tvg-id-casing/m3u-epg-editor.py

ap-rose commented 4 years ago

The fix you submitted did the trick, Thank you so much for prompt response.

Just know your software was of great use to me and continuing to use it.

bebo-dot-dev commented 4 years ago

You're welcome, thanks for the update, I'll merge the change.

bebo-dot-dev commented 4 years ago

Merged to master in https://github.com/jjssoftware/m3u-epg-editor/pull/33