feat: 修复视频图片没获取到的问题

This commit is contained in:
“Rodma1” 2024-10-16 15:49:07 +08:00
parent 17c1be4d09
commit e4baa5bba4

View File

@ -81,6 +81,10 @@ def get_visible_moments_list():
if 'pic' in item:
for index, picture in enumerate(item['pic']):
pictures += picture['url1'] + ","
if 'video' in item:
for index, picture in enumerate(item['video']):
pictures += picture['url1'] + ","
# 去除最后一个逗号
pictures = pictures[:-1] if pictures != "" else pictures
comments = []