epic fix a bug

This commit is contained in:
xtaodada 2021-11-26 13:15:14 +08:00
parent 11f5d93d24
commit 8cf9274d9b
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ async def epic(context):
upcoming_promotions = game["promotions"]["upcomingPromotionalOffers"] upcoming_promotions = game["promotions"]["upcomingPromotionalOffers"]
if not game_promotions and upcoming_promotions: if not game_promotions and upcoming_promotions:
continue # 促销即将上线,跳过 continue # 促销即将上线,跳过
elif game["price"]["totalPrice"]["discountPrice"] != 0:
continue # 非免费游戏,跳过
else: else:
game_thumbnail, game_dev, game_pub = None, None, None game_thumbnail, game_dev, game_pub = None, None, None
for image in game["keyImages"]: for image in game["keyImages"]:

View File

@ -782,7 +782,7 @@
}, },
{ {
"name": "epic", "name": "epic",
"version": "1.00", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "5.80 kb", "size": "5.80 kb",