mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update data_source.py
This commit is contained in:
parent
bcc6df9d4d
commit
15ede1295b
@ -63,8 +63,9 @@ async def get_setu_urls(keyword: str, num: int = 1, r18: int = 0):
|
|||||||
text_list.append(f'title:{title}\nauthor:{author}\nPID:{pid}')
|
text_list.append(f'title:{title}\nauthor:{author}\nPID:{pid}')
|
||||||
img_url = str(img_url).replace('img-master', 'img-original').replace('_master1200', '')
|
img_url = str(img_url).replace('img-master', 'img-original').replace('_master1200', '')
|
||||||
txt_data += img_url + ','
|
txt_data += img_url + ','
|
||||||
with open(TXT_PATH + file_name, 'w') as f:
|
if DOWNLOAD_SETU:
|
||||||
f.write(txt_data)
|
with open(TXT_PATH + file_name, 'w') as f:
|
||||||
|
f.write(txt_data)
|
||||||
return urls, text_list, 200
|
return urls, text_list, 200
|
||||||
else:
|
else:
|
||||||
return "没找到符合条件的色图...", '', 401
|
return "没找到符合条件的色图...", '', 401
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user