Beispiel #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)
    }
Beispiel #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)
	}
Beispiel #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
    }
Beispiel #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
	}
Beispiel #5
0
def createDirectory(meta):
    hash = utils.getHash(metadata.getArtist(meta) + metadata.getTitle(meta))
    directory = u"{}/{}".format(OUTPUT, hash)
    utils.createDirectory(directory)

    return directory
Beispiel #6
0
def createDirectory(meta):
	hash = utils.getHash(metadata.getArtist(meta) + metadata.getTitle(meta))
	directory = u"{}/{}".format(OUTPUT, hash)
	utils.createDirectory(directory)
	
	return directory