Исправление кодировки по умолчанию для LRC
This commit is contained in:
parent
1dee95a7c4
commit
c8be15391d
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.2.2b0"
|
version = "3.2.3b0"
|
||||||
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ def download_track(
|
||||||
lrc_lyrics = track_lyrics.fetch_lyrics()
|
lrc_lyrics = track_lyrics.fetch_lyrics()
|
||||||
lrc_path = target_path.with_suffix(".lrc")
|
lrc_path = target_path.with_suffix(".lrc")
|
||||||
if not lrc_path.is_file():
|
if not lrc_path.is_file():
|
||||||
with open(lrc_path, "w") as f:
|
with open(lrc_path, "w", encoding="utf-8") as f:
|
||||||
f.write(lrc_lyrics)
|
f.write(lrc_lyrics)
|
||||||
elif lyrics_info.has_available_text_lyrics:
|
elif lyrics_info.has_available_text_lyrics:
|
||||||
if track_lyrics := track.get_lyrics(format="TEXT"):
|
if track_lyrics := track.get_lyrics(format="TEXT"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue