尝试支持图文信息
This commit is contained in:
@@ -258,7 +258,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
|||||||
images_field = data.get("images") or []
|
images_field = data.get("images") or []
|
||||||
images: List[str] = []
|
images: List[str] = []
|
||||||
for img in images_field:
|
for img in images_field:
|
||||||
ulist = img.get("download_url_list") or img.get("url_list") or []
|
ulist = img.get("url_list") or img.get("download_url_list") or []
|
||||||
chosen = self._prefer_image_url(ulist)
|
chosen = self._prefer_image_url(ulist)
|
||||||
if chosen:
|
if chosen:
|
||||||
images.append(chosen)
|
images.append(chosen)
|
||||||
|
|||||||
Reference in New Issue
Block a user