fix: 解决小红书图片水印问题

This commit is contained in:
helloteemo
2024-07-11 17:39:48 +08:00
parent 1264b2997c
commit e71690a985
2 changed files with 10 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ async def update_xhs_note(note_item: Dict):
image_list: List[Dict] = note_item.get("image_list", [])
tag_list: List[Dict] = note_item.get("tag_list", [])
for img in image_list:
if img.get('url_default') != '':
img.update({'url': img.get('url_default')})
video_url = ''
if note_item.get('type') == 'video':
videos = note_item.get('video').get('media').get('stream').get('h264')