| | |
| | | def getmetacopyright(): |
| | | # Return normalized copyright data |
| | | copyright = unicodedata.normalize('NFKD', metadata['format']['tags']['copyright']).encode('ascii','ignore') |
| | | return copyright |
| | | return copyright.decode() |
| | | |
| | | def getmetadatatags(key): |
| | | # get specific data |
| | |
| | | for rfile in glob.glob(args.filename): |
| | | if rfile.find("aax") != -1 and os.path.isfile(rfile): |
| | | metadata = getmetadata(rfile) |
| | | album = getmetadatatags('album') |
| | | album = getmetadatatags(album) |
| | | #See if we got it already |
| | | if (findalbumbyname(album) == False): |
| | | artist = getmetadatatags('artist') |