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: