ravstar if you haven't looked at what I do for UK rytec.
All the crazy code for matching uk rytec is found in globalfunctions.py
But there is a hell of a lot going on in that code to match uk iptv to uk rytec channels.
starting from line
tbe your example is for uk, so rytec names swap should work for you. Although it won't put the sd,hd, etc back at the end.