Properly iterate over track tags

This commit is contained in:
Lukáš Lalinský
2008-11-27 11:37:26 +01:00
parent acb6daef03
commit 3ec8dd0c83

View File

@@ -121,7 +121,7 @@ class Album(DataObject, Item):
def _convert_folksonomy_tags_to_genre(self, track, ignore_tags):
# Combine release and track tags
tags = dict(self.folksonomy_tags)
for name, count in track.folksonomy_tags:
for name, count in track.folksonomy_tags.iteritems():
tags.setdefault(name, 0)
tags[name] += count
if not tags: