mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-22 04:39:26 +00:00
Added lowerfirst option to folder rename, warn message if no lyrics are found on page
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user