Update main.py
Browse files
main.py
CHANGED
|
@@ -61,17 +61,17 @@ async def starrail_card(id, designtype, character_id=None, character_art_url=Non
|
|
| 61 |
"ltoken_v2": ltoken_v2,
|
| 62 |
"ltuid_v2": ltuid_v2
|
| 63 |
}
|
| 64 |
-
async with starrailcard.HoYoCard(cookie=cookie,seeleland=True, remove_logo=True, character_art=character_art) as card:
|
| 65 |
-
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 66 |
else:
|
| 67 |
# Fallback to the existing process
|
| 68 |
-
async with starrailcard.Card(seeleland=True, remove_logo=True, character_art=character_art) as card:
|
| 69 |
-
return await card.create(id, style=(2 if str(designtype) == "2" else 1))
|
| 70 |
|
| 71 |
|
| 72 |
# Star Rail profile creation
|
| 73 |
async def starrail_profile(id):
|
| 74 |
-
async with starrailcard.Card(remove_logo=True, seeleland=True) as card:
|
| 75 |
return await card.create_profile(id, style=2)
|
| 76 |
|
| 77 |
# Genshin profile creation
|
|
|
|
| 61 |
"ltoken_v2": ltoken_v2,
|
| 62 |
"ltuid_v2": ltuid_v2
|
| 63 |
}
|
| 64 |
+
async with starrailcard.HoYoCard(cookie=cookie,seeleland=True, remove_logo=True, character_art=character_art,boost_speed = True) as card:
|
| 65 |
+
return await card.create(id,force_update = True, style=(2 if str(designtype) == "2" else 1))
|
| 66 |
else:
|
| 67 |
# Fallback to the existing process
|
| 68 |
+
async with starrailcard.Card(seeleland=True, remove_logo=True, character_art=character_art,boost_speed = True) as card:
|
| 69 |
+
return await card.create(id,force_update = True, style=(2 if str(designtype) == "2" else 1))
|
| 70 |
|
| 71 |
|
| 72 |
# Star Rail profile creation
|
| 73 |
async def starrail_profile(id):
|
| 74 |
+
async with starrailcard.Card(remove_logo=True, seeleland=True,boost_speed = True) as card:
|
| 75 |
return await card.create_profile(id, style=2)
|
| 76 |
|
| 77 |
# Genshin profile creation
|