Пример #1
0
def scan_file(args, filename):
	if _is_mp3(filename):
		update_tag(args, filename)

		s = Song()
		s.load_tag_from_file(filename)

		print
		print "--- %s" % filename
		print "Title".ljust(10), ":", s.data['title']
		print "Album".ljust(10), ":", s.album_tag
		print "Artist".ljust(10), ":", s.artist_tag
		print "CD Group".ljust(10), ":", s.genre_tag
		print "Link Name".ljust(10), ":", s.data['link_text']
		print "Link".ljust(10), ":", s.data['url']
		print "Length".ljust(10), ":", "%s:%02u" % (int(math.floor(s.data['length'] / 60)), (s.data['length'] % 60))
		print "Gain".ljust(10), ":", s.replay_gain	
Пример #2
0
def scan_file(args, filename):
    if _is_mp3(filename):
        update_tag(args, filename)

        s = Song()
        s.load_tag_from_file(filename)

        print
        print "--- %s" % filename
        print "Title".ljust(10), ":", s.data['title']
        print "Album".ljust(10), ":", s.album_tag
        print "Artist".ljust(10), ":", s.artist_tag
        print "CD Group".ljust(10), ":", s.genre_tag
        print "Link Name".ljust(10), ":", s.data['link_text']
        print "Link".ljust(10), ":", s.data['url']
        print "Length".ljust(10), ":", "%s:%02u" % (int(
            math.floor(s.data['length'] / 60)), (s.data['length'] % 60))
        print "Gain".ljust(10), ":", s.replay_gain
Пример #3
0
def scan_file(args, filename):
    if _is_mp3(filename):
        update_tag(args, filename)

        s = Song()
        s.load_tag_from_file(filename)

        print()
        print("--- %s" % filename)
        print("Title".ljust(10), ":", s.data["title"])
        print("Album".ljust(10), ":", s.album_tag)
        print("Artist".ljust(10), ":", s.artist_tag)
        print("CD Group".ljust(10), ":", s.genre_tag)
        print("Link Name".ljust(10), ":", s.data["link_text"])
        print("Link".ljust(10), ":", s.data["url"])
        print(
            "Length".ljust(10),
            ":",
            "%s:%02u" % (int(math.floor(s.data["length"] / 60)),
                         (s.data["length"] % 60)),
        )