59-path-humour.lua 310 B

123456789101112
  1. -- Output 'humour' genre to a separate library.
  2. -- Run before 'path'.
  3. local ossep = osseperator or '/'
  4. local genre = o.genre and o.genre:lower():gsub([[\s]],'_')
  5. if genre and genre == 'humour' then
  6. library = os.getenv('HOME') .. ossep .. 'humour'
  7. else
  8. library = os.getenv('HOME') .. ossep .. 'Music'
  9. end