diff options
author | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2009-01-15 12:37:41 +0100 |
---|---|---|
committer | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2009-01-15 12:37:41 +0100 |
commit | 634d443411494e43459a110f5a2f1158016eb60c (patch) | |
tree | 820286d983644806b0677c6c159e52382a50b507 | |
parent | 69ee1a1e3d2a17a5512541a4135a5783391b6e24 (diff) | |
download | vdr-plugin-muggle-634d443411494e43459a110f5a2f1158016eb60c.tar.gz vdr-plugin-muggle-634d443411494e43459a110f5a2f1158016eb60c.tar.bz2 |
getlyrics: strip trailing space (only 0x20 for now)
getlyrics: remove debug output
-rwxr-xr-x | scripts/muggle_getlyrics | 5 |
1 files changed, 1 insertions, 4 deletions
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) |