demlo: Add 'humour.lua'
parent
f609e075e0
commit
708b4aa2b6
|
@ -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'}
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue