def getSummaryMetadata(meta): return { u"artist": metadata.getArtist(meta), u"title": metadata.getTitle(meta), u"album": metadata.getAlbum(meta), u"year": metadata.getYear(meta) }
def getBasicMetadata(meta): artist = metadata.getArtist(meta) title = metadata.getTitle(meta) hash = utils.getHash(artist + title) thumb = last.getThumb(artist, metadata.getAlbum(meta)) return { u"artist": artist, u"title": title, u"directory": u"{}/".format(hash), u"thumb": thumb }
def createDirectory(meta): hash = utils.getHash(metadata.getArtist(meta) + metadata.getTitle(meta)) directory = u"{}/{}".format(OUTPUT, hash) utils.createDirectory(directory) return directory