Added lowerfirst option to folder rename, warn message if no lyrics are found on page

This commit is contained in:
Remy
2011-08-21 12:20:35 -07:00
parent 8ab4442840
commit 98d154eb22
2 changed files with 4 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ def getLyrics(artist, song):
m = re.compile('''<div class='lyricbox'><div class='rtMatcher'>.*?</div>(.*?)<!--''').search(lyricspage)
if not m:
logger.warn('Cannot find lyrics on: %s' % lyricsurl)
return
lyrics = convert_html_entities(m.group(1)).replace('<br />', '\n')

View File

@@ -302,12 +302,15 @@ def moveFiles(albumpath, release, tracks):
firstchar = '0-9'
else:
firstchar = sortname[0]
lowerfirst = firstchar.lower()
values = { 'artist': artist,
'album': album,
'year': year,
'first': firstchar,
'lowerfirst': lowerfirst
}