Skip to content

Commit 5356518

Browse files
committed
fix: ID missing when handling Twitter GIF (close #99)
1 parent fe30757 commit 5356518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nazurin/sites/twitter/api/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def get_best_video(tweet: dict, variants: list) -> Ugoira:
8383
file = File(filename, best_variant, destination)
8484
async with Request() as session:
8585
await file.download(session)
86-
return Ugoira(file, BaseAPI.build_caption(tweet), tweet)
86+
return Ugoira(int(tweet["id_str"]), file, BaseAPI.build_caption(tweet), tweet)
8787

8888
@staticmethod
8989
def parse_photo(tweet: dict, photo: dict, index: int):

0 commit comments

Comments
 (0)