Exemple #1
0
def getSummaryMetadata(meta):
    return {
        u"artist": metadata.getArtist(meta),
        u"title": metadata.getTitle(meta),
        u"album": metadata.getAlbum(meta),
        u"year": metadata.getYear(meta)
    }
Exemple #2
0
def getSummaryMetadata(meta):
	return {
		u"artist": metadata.getArtist(meta),
		u"title": metadata.getTitle(meta),
		u"album": metadata.getAlbum(meta),
		u"year": metadata.getYear(meta)
	}
Exemple #3
0
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
    }
Exemple #4
0
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
	}