mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2024-09-20 15:26:32 +08:00
fix: media_obj filename
This commit is contained in:
parent
6b7a211fba
commit
34eb0e559c
|
@ -55,7 +55,7 @@ async def _get_media_meta(
|
|||
dt.utcfromtimestamp(media_obj.date).isoformat(), file_format
|
||||
),
|
||||
)
|
||||
elif _type == "photo":
|
||||
elif _type in ["photo", "video"]:
|
||||
file_name = os.path.join(THIS_DIR, _type, "")
|
||||
else:
|
||||
file_name = os.path.join(THIS_DIR, _type, media_obj.file_name)
|
||||
|
|
Loading…
Reference in a new issue