From a84ef8603206a97b73204d758ef9c7d3bbe3688f Mon Sep 17 00:00:00 2001 From: Dzheremi-belpois Date: Tue, 10 Dec 2024 19:27:19 +0300 Subject: [PATCH] fix: unable to publish any song caused by abscense of brackets in appropriate statement --- lrcmake/methods/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrcmake/methods/publish.py b/lrcmake/methods/publish.py index e598dc4..2784674 100644 --- a/lrcmake/methods/publish.py +++ b/lrcmake/methods/publish.py @@ -34,7 +34,7 @@ def solve_challenge(prefix, target_hex): return str(nonce) def do_publish(*args): - if shared.win.title or shared.win.artist or eyed3.load(shared.win.filepath).tag.album == "Unknown": + if (shared.win.title or shared.win.artist or eyed3.load(shared.win.filepath).tag.album) == "Unknown": toast = Adw.Toast(title=_("Some of Title, Artist and/or Album fileds are Unknown!")) # type: ignore shared.win.toast_overlay.add_toast(toast) shared.win.export_lyrics.set_icon_name("export-to-symbolic")