From ab0f07a2341cd741921d163baa606acc6e09e127 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 28 Nov 2010 10:09:06 +0100 Subject: Lyrics: save lyrics as stickers for now encode newlines as '\n', should probably be fixed in MPD protocol also no reading support for now --- nephilim/plugins/Lyrics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py index 30e18fa..6838eda 100644 --- a/nephilim/plugins/Lyrics.py +++ b/nephilim/plugins/Lyrics.py @@ -272,6 +272,7 @@ class Lyrics(Plugin): self.logger.info('Lyrics successfully saved.') except IOError, e: self.logger.error('Error writing lyrics: %s', e) + self.mpclient.sticker_set(self.mpclient.cur_song['file'], 'lyrics', lyrics.replace('\n', '\\n')) def del_lyrics_file(self, song = None): """Delete a lyrics file for song. If song is not specified -- cgit v1.2.3