Fixed a bug where the track metadata was shifted by 1 in the table.

This commit is contained in:
The Wobbler 2024-12-29 19:15:33 +01:00
parent 6141f34f2f
commit 239e50bfc9

View file

@ -56,10 +56,10 @@ class Library:
) )
track_item.track = track track_item.track = track
track_item.setText(1, track.tags.title) track_item.setText(2, track.tags.title)
track_item.setText(2, track.tags.artist) track_item.setText(3, track.tags.artist)
track_item.setText(3, track.tags.album) track_item.setText(4, track.tags.album)
track_item.setText(4, str(i + 1)) track_item.setText(5, str(i + 1))
i += 1 i += 1