Skip to content

Commit

Permalink
[Picon] fix BSoD caused by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos authored Nov 23, 2024
1 parent f15c958 commit 4bf86fc
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 4bf86fc

Please sign in to comment.