Skip to content

Commit

Permalink
Merge pull request #4106 from Huevos/patch-28
Browse files Browse the repository at this point in the history
  • Loading branch information
littlesat authored Nov 23, 2024
2 parents f15c958 + 4bf86fc commit 9a485b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/Renderer/Picon.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def getPiconName(serviceRef):
legacy_name = re.sub("[^a-z0-9]", "", utf8_name.replace("&", "and").replace("+", "plus").replace("*", "star")) # legacy ascii service name picons
pngname = findPicon(utf8_name) or legacy_name and findPicon(legacy_name) or findPicon(re.sub(r"(fhd|uhd|hd|sd|4k)$", "", utf8_name).strip()) or legacy_name and findPicon(re.sub(r"(fhd|uhd|hd|sd|4k)$", "", legacy_name).strip())
if not pngname and len(legacy_name) > 6:
series = re.sub(r"s[0-9]*e[0-9]*$", "", name)
series = re.sub(r"s[0-9]*e[0-9]*$", "", legacy_name)
pngname = findPicon(series)
return pngname

Expand Down

0 comments on commit 9a485b7

Please sign in to comment.