1
0
Fork 0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2026-03-05 12:01:38 +00:00

fix channel extraction when header is not available

This commit is contained in:
bopol 2021-01-17 02:29:05 +01:00 committed by Cadence Ember
parent adb5dc93d5
commit 6cc921c2dc
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
2 changed files with 26 additions and 9 deletions

View file

@ -44,6 +44,9 @@ def add_html_links(text):
return text
def view_count_text_to_number(text):
if text is None:
return 0
first_word = text.split(" ")[0].replace(",", "")
if first_word == "No":
return 0