demlo: Add 'humour.lua'
parent
f609e075e0
commit
708b4aa2b6
|
@ -31,4 +31,4 @@ removesource = false
|
||||||
|
|
||||||
-- Scripts to run by default.
|
-- Scripts to run by default.
|
||||||
-- Order matters, e.g. 'path' can be influenced by the modifications made by 'tag'.
|
-- 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",
|
"d'Acide",
|
||||||
|
|
||||||
--French
|
--French
|
||||||
'contre',
|
'avec',
|
||||||
'entre',
|
|
||||||
'chez',
|
'chez',
|
||||||
'dans',
|
'dans',
|
||||||
'sur',
|
'de',
|
||||||
|
'des',
|
||||||
|
'du',
|
||||||
|
'le',
|
||||||
|
'la',
|
||||||
|
'les',
|
||||||
'que',
|
'que',
|
||||||
'qui',
|
'qui',
|
||||||
'quoi',
|
'quoi',
|
||||||
'comment',
|
'sur',
|
||||||
'quand',
|
'un',
|
||||||
|
'une',
|
||||||
|
|
||||||
-- German
|
-- German
|
||||||
'der',
|
'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