Исправление загрузки LRC текстов
This commit is contained in:
parent
bba4e69ddf
commit
db5688a024
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "yandex-music-downloader"
|
name = "yandex-music-downloader"
|
||||||
version = "3.4.3b0"
|
version = "3.4.3b1"
|
||||||
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ def download_track(
|
||||||
if lyrics_format == LyricsFormat.LRC and lyrics_info.has_available_sync_lyrics:
|
if lyrics_format == LyricsFormat.LRC and lyrics_info.has_available_sync_lyrics:
|
||||||
lrc_path = target_path.with_suffix(".lrc")
|
lrc_path = target_path.with_suffix(".lrc")
|
||||||
if not lrc_path.is_file() and (
|
if not lrc_path.is_file() and (
|
||||||
track_lyrics := track.get_lyrics(format="LRC")
|
track_lyrics := track.get_lyrics(format_="LRC")
|
||||||
):
|
):
|
||||||
download_via_temporary_file(client, track_lyrics.download_url, lrc_path)
|
download_via_temporary_file(client, track_lyrics.download_url, lrc_path)
|
||||||
elif lyrics_info.has_available_text_lyrics:
|
elif lyrics_info.has_available_text_lyrics:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue