From a0fa7e455e135ef04c89a0643f44a2cec271a43b Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Thu, 16 Nov 2023 22:24:37 +0000 Subject: [PATCH 1/2] Change intro gap warning to 300ms --- app/playlists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/playlists.py b/app/playlists.py index 8f239e0..5eb6927 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -2228,7 +2228,7 @@ class PlaylistTab(QTableWidget): if not start_gap: start_gap = 0 start_gap_item = self._set_item_text(row_number, START_GAP, str(start_gap)) - if start_gap >= 500: + if start_gap >= 300: brush = QBrush(QColor(Config.COLOUR_LONG_START)) else: brush = QBrush() From e689c9afebd672d8c81be5a1fdee0524b6c22451 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 19 Nov 2023 11:46:38 +0000 Subject: [PATCH 2/2] Check for no title/artist tag in replace_files --- app/replace_files.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/replace_files.py b/app/replace_files.py index 2c49931..eeab760 100755 --- a/app/replace_files.py +++ b/app/replace_files.py @@ -75,7 +75,13 @@ def main(): continue new_tags = get_tags(new_path) new_title = new_tags["title"] + if not new_title: + print(f"{new_fname} does not have a title tag") + sys.exit(1) new_artist = new_tags["artist"] + if not new_artist: + print(f"{new_fname} does not have an artist tag") + sys.exit(1) bitrate = new_tags["bitrate"] # If same filename exists in parent direcory, check tags