mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2026-03-05 12:01:38 +00:00
Fix channel extraction when subscribers not available
This commit is contained in:
parent
10f8009101
commit
e95d814709
2 changed files with 3 additions and 1 deletions
|
|
@ -128,6 +128,8 @@ def normalise_url_protocol(url):
|
|||
return url
|
||||
|
||||
def uncompress_counter(text):
|
||||
if text.lower() == "no" or text.lower() == "unknown":
|
||||
return 0
|
||||
last = text[-1:].lower()
|
||||
if last >= "0" and last <= "9":
|
||||
return int(last)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue