Track time appears to display incorrectly if it's unknown on MusicBrainz. (#2548)

This commit is contained in:
Lukáš Lalinský
2007-03-19 22:13:37 +01:00
parent 31047ff524
commit 2fbf31fc11
2 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,9 @@ Version 0.9.0alpha6 - 2007-03-XX
* Bug Fixes:
* Artist names from ARs should be translated, too.
* Freeze after answering no to "download the new version" prompt. (#2542)
* %musicbrainz_albumid% not working in file renaming. (#2543)
* %musicbrainz_albumid% not working in file renaming. (#2543)
* Track time appears to display incorrectly if it's unknown on
MusicBrainz. (#2548)
* Internals:
* The browser integration HTTP server rewritten using QTcpServer.

View File

@@ -106,6 +106,7 @@ def artist_to_metadata(node, m, release=False):
def track_to_metadata(node, m, config=None):
m['musicbrainz_trackid'] = node.attribs['id']
m['~#length'] = 0
for name, nodes in node.children.iteritems():
if not nodes:
continue
@@ -119,8 +120,6 @@ def track_to_metadata(node, m, config=None):
_relations_to_metadata(nodes, m, config)
elif name == 'release_list':
release_to_metadata(nodes[0].release[0], m)
if '~#length' not in m:
m['~#length'] = 0
m['~length'] = format_time(m['~#length'])