This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: Scripts have not been updated for Gerbera 2.0+ | |
// Helper to access first element of an array if it exists | |
function get(item, fallback) { | |
return (item && item[0]) || fallback; | |
} | |
// Custom audio import script | |
function addAudioCustom(obj) { | |
var title = get(obj.metaData[M_TITLE], obj.title); |