Merge pull request #60 from Rodma1/chen

feat: 修复视频图片没获取到的问题
This commit is contained in:
LibraHp_0928 2024-10-16 16:12:00 +08:00 committed by GitHub
commit 6c8d8d2ec3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = []