Skip to content

Commit

Permalink
All: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DvaMishkiLapa committed May 19, 2024
1 parent dd9f6ae commit c3a9def
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def get_response_info(content_type: str) -> Dict[str, str]:


def get_file_name_by_link(link: str) -> str | None:
'''
Возвращает имя файла по его ссылке, если возможно
`link`: ссылка
'''
try:
if '?extra=' in link:
return link.split('/')[-1].split('?extra=')[0]
Expand Down

0 comments on commit c3a9def

Please sign in to comment.