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:
parent
adb5dc93d5
commit
6cc921c2dc
2 changed files with 26 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue