Previously, the current song would be centered in the current playlist
if the file is different than the previous song's file. It's possible
for duplicate songs to be present in the current playlist, and thus
this test would fail. Instead of using the file, use the song's
position in the playlist.
---
Found this while prepping another series.
sonata/main.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sonata/main.py b/sonata/main.py
index 4592aba..e533ab7 100644
--- a/sonata/main.py
+++ b/sonata/main.py
@@ -1685,7 +1685,7 @@ class Base(object):
row = int(self.status['song'])
self.current.boldrow(row)
if self.songinfo:
- if not self.prevsonginfo or mpdh.get(self.songinfo, 'file') !=
mpdh.get(self.prevsonginfo, 'file'):
+ if not self.prevsonginfo or mpdh.get(self.songinfo, 'pos') !=
mpdh.get(self.prevsonginfo, 'pos'):
self.current.center_song_in_list()
self.current.prev_boldrow = row
--
1.6.5.rc1.44.ga1675
_______________________________________________
Sonata-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/sonata-users