summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2012-12-13 21:45:37 +0100
committerLaurent Bachelier <laurent@bachelier.name>2012-12-13 21:45:37 +0100
commitb98ffeed60dc2bbd9e1afed191942f31881b947a (patch)
tree9a43d2502f84b5bb45cc70a5b98bdadc6151edb7
parentAdd single_stop() (diff)
downloadmpdat-master.tar.xz
Fix missing last albumHEADmaster
This is getting pretty ugly, though.
-rw-r--r--mpdat/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpdat/client.py b/mpdat/client.py
index 37a91e1..5974ed0 100644
--- a/mpdat/client.py
+++ b/mpdat/client.py
@@ -97,6 +97,8 @@ class MPDatClient(mpd.MPDClient):
yield songs
songs = []
songs.append(song)
+ if songs:
+ yield songs
def get_playlist_albums_time(self):
for album in self.get_playlist_albums():