From 63a38b5bf93f99e85dbebc0bdbabc7d1dfb8c79c Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Tue, 28 Nov 2023 07:28:33 +0000 Subject: [PATCH] V3 polish: fix @starttime in headers --- app/playlistmodel.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index c75ec22..f235d1e 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -1280,10 +1280,6 @@ class PlaylistModel(QAbstractTableModel): if prd.played: continue - # Don't schedule unplayable tracks - if file_is_unreadable(prd.path): - continue - # If we're between the current and next row, zero out # times if ( @@ -1302,8 +1298,12 @@ class PlaylistModel(QAbstractTableModel): if header_time: next_start_time = header_time else: - # This is an unplayed track; set start/end if we have a - # start time + # This is an unplayed track + # Don't schedule unplayable tracks + if file_is_unreadable(prd.path): + continue + + # Set start/end if we have a start time if next_start_time is None: continue if stend.start_time != next_start_time: