add bypass paywall links for several sites #205

This commit is contained in:
rimu 2024-06-16 19:09:56 +08:00
parent 917ca13a79
commit 2b7ab8c415

View file

@ -82,7 +82,10 @@ def tags_to_string(post: Post) -> str:
def body_has_no_paywall_link(body):
return 'https://archive.' not in body and 'https://12ft.io' not in body
if body:
return 'https://archive.' not in body and 'https://12ft.io' not in body
else:
return True
def url_has_paywall(url) -> bool: