From 634d443411494e43459a110f5a2f1158016eb60c Mon Sep 17 00:00:00 2001 From: Wolfgang Rohdewald Date: Thu, 15 Jan 2009 12:37:41 +0100 Subject: getlyrics: strip trailing space (only 0x20 for now) getlyrics: remove debug output --- scripts/muggle_getlyrics | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/muggle_getlyrics b/scripts/muggle_getlyrics index f6fba8e..4f7f775 100755 --- a/scripts/muggle_getlyrics +++ b/scripts/muggle_getlyrics @@ -24,7 +24,7 @@ def writeFile(name,s): widx2 = len(words) while widx2 > widx1 + 1 and len(' '.join(words[widx1:widx2])) > MAXLINELENGTH: widx2 -= 1 - newline = ' '.join(words[widx1:widx2])+'\n' + newline = ' '.join(words[widx1:widx2]).rstrip()+'\n' newline = newline.encode(locale.getdefaultlocale()[1]) outfile.write(newline) widx1 = widx2 @@ -81,16 +81,13 @@ def load(): outlyric = g.find_lyrics(title, artist) if len(outlyric) > 0: - print 'versions:',len(outlyric) for idx,item in enumerate(outlyric): l = item.getLyric() if l is None: continue if l.lyrics is None: - print 'lyrics is None' continue if len(l.lyrics)<3: - print 'lyrics is too short',l.lyrics continue s = l.lyrics s = decode_htmlentities(s) -- cgit v1.2.3