exclude snappy quotes that contain 'drama' from WPD

master
Aevann 2023-08-25 01:52:51 +03:00
parent 2a69a2bb62
commit b3baa83b47
1 changed files with 2 additions and 0 deletions

View File

@ -45,5 +45,7 @@ def const_initialize():
try: try:
with open(filename, "r", encoding="utf-8") as f: with open(filename, "r", encoding="utf-8") as f:
SNAPPY_QUOTES = f.read().split("\n{[para]}\n") SNAPPY_QUOTES = f.read().split("\n{[para]}\n")
if SITE_NAME == 'WPD':
SNAPPY_QUOTES = [x for x in SNAPPY_QUOTES if 'drama' not in x.lower()]
except FileNotFoundError: except FileNotFoundError:
pass pass