This commit is contained in:
Aevann1 2022-03-17 10:59:44 +02:00
parent 56a07369fd
commit a7b801a9bb
12 changed files with 54 additions and 32 deletions

View file

@ -697,7 +697,7 @@ def thumbnail_thread(pid):
if SITE_NAME == 'Drama':
for t in ("submission","comment"):
word = random.choice(('rdrama','marsey'))
word = random.choice(('rdrama','marsey','r/drama'))
try:
data = requests.get(f'https://api.pushshift.io/reddit/{t}/search?html_decode=true&q={word}&size=1', timeout=5).json()["data"]