Исправление загрузки LRC текстов

This commit is contained in:
Lev Plyusnin 2025-02-01 13:40:32 +07:00
parent bba4e69ddf
commit db5688a024
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "yandex-music-downloader"
version = "3.4.3b0"
version = "3.4.3b1"
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
requires-python = ">=3.9"
readme = "README.md"

View file

@ -258,7 +258,7 @@ def download_track(
if lyrics_format == LyricsFormat.LRC and lyrics_info.has_available_sync_lyrics:
lrc_path = target_path.with_suffix(".lrc")
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)
elif lyrics_info.has_available_text_lyrics: