From ad734e9cf686ca40350865a6ee8d6f1cb0811cd7 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 20 Dec 2025 20:16:39 +0100 Subject: [PATCH] dont swap non official tracks --- modules/play_sort.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/play_sort.py b/modules/play_sort.py index 076d020..ec602a7 100644 --- a/modules/play_sort.py +++ b/modules/play_sort.py @@ -51,6 +51,8 @@ class PopularitySorterModule(PlaylistModifierModule): track1 = playlist[i] track2 = playlist[i+1] + if not (track1.official and track2.official): continue + # Get play counts for both tracks, defaulting to 0 if not found. count1 = play_counts.get(track1.path.as_posix(), 0) count2 = play_counts.get(track2.path.as_posix(), 0)