demlo: Add 'humour.lua'

master
Pierre Neidhardt 2016-01-18 09:22:03 +11:00
parent f609e075e0
commit 708b4aa2b6
3 changed files with 22 additions and 6 deletions

View File

@ -31,4 +31,4 @@ removesource = false
-- Scripts to run by default.
-- Order matters, e.g. 'path' can be influenced by the modifications made by 'tag'.
scripts = {'const', 'tag', 'sub', 'case', 'punctuation', 'encoding', 'flac2ogg', 'path', 'cover'}
scripts = {'const', 'tag', 'sub', 'case', 'punctuation', 'encoding', 'flac2ogg', 'humour', 'path', 'cover'}

View File

@ -22,16 +22,21 @@ const_custom = {
"d'Acide",
--French
'contre',
'entre',
'avec',
'chez',
'dans',
'sur',
'de',
'des',
'du',
'le',
'la',
'les',
'que',
'qui',
'quoi',
'comment',
'quand',
'sur',
'un',
'une',
-- German
'der',

View File

@ -0,0 +1,11 @@
-- Output 'humour' genre to a separate library.
-- Run before 'path'.
local ossep = osseperator or '/'
local genre = o.genre and o.genre:lower():gsub([[\s]],'_')
if genre and genre == 'humour' then
library = os.getenv('HOME') .. ossep .. 'humour'
else
library = os.getenv('HOME') .. ossep .. 'music'
end