0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00

dont swap non official tracks

This commit is contained in:
2025-12-20 20:16:39 +01:00
parent 4eada6b46c
commit ad734e9cf6

View File

@@ -51,6 +51,8 @@ class PopularitySorterModule(PlaylistModifierModule):
track1 = playlist[i] track1 = playlist[i]
track2 = playlist[i+1] track2 = playlist[i+1]
if not (track1.official and track2.official): continue
# Get play counts for both tracks, defaulting to 0 if not found. # Get play counts for both tracks, defaulting to 0 if not found.
count1 = play_counts.get(track1.path.as_posix(), 0) count1 = play_counts.get(track1.path.as_posix(), 0)
count2 = play_counts.get(track2.path.as_posix(), 0) count2 = play_counts.get(track2.path.as_posix(), 0)