Skip to content

Commit

Permalink
fix: ID missing when handling Twitter GIF (close #99)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-young committed Apr 16, 2024
1 parent fe30757 commit 5356518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nazurin/sites/twitter/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def get_best_video(tweet: dict, variants: list) -> Ugoira:
file = File(filename, best_variant, destination)
async with Request() as session:
await file.download(session)
return Ugoira(file, BaseAPI.build_caption(tweet), tweet)
return Ugoira(int(tweet["id_str"]), file, BaseAPI.build_caption(tweet), tweet)

@staticmethod
def parse_photo(tweet: dict, photo: dict, index: int):
Expand Down

0 comments on commit 5356518

Please sign in to comment.