patch: similarity ratio

This commit is contained in:
sadorowo 2024-01-14 19:55:02 +01:00
parent 6dc81794c1
commit 05b60ee779

View File

@ -126,7 +126,7 @@ def get_channels(playlist: tv_playlist.M3UPlaylist):
yield channel.name
def get_similarity_ratio(a: str, b: str):
return SequenceMatcher(None, a, b).ratio()
return SequenceMatcher(None, a.lower(), b.lower()).ratio()
if __name__ == "__main__":
debug("Starting...")