Update downloads.py

This commit is contained in:
orShadxw 2025-03-31 23:20:58 +03:30 committed by GitHub
parent 1c38359bae
commit 264f535918
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -992,8 +992,8 @@ class DownloadMethods:
)
# TODO Better way to get opened handles of files and auto-close
kind, possible_names = self._get_kind_and_names(web.attributes)
file = self._get_proper_filename(
kind, possible_names = cls._get_kind_and_names(web.attributes)
file = cls._get_proper_filename(
file, kind, utils.get_extension(web),
possible_names=possible_names
)