Projects
Multimedia
audiotools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
audiotools.patch
Changed
@@ -181,3 +181,50 @@ current_value = frame.__unicode__() if u"/" in current_value: (first, second) = current_value.split(u"/", 1) +--- a/audiotools/vorbiscomment.py ++++ b/audiotools/vorbiscomment.py +@@ -217,7 +217,7 @@ class VorbisComment(MetaData): + except KeyError: + # if no TRACKNUMBER/DISCNUMBER, return None + return None +- elif attr in {'track_total', 'album_total'}: ++ elif attr in ['track_total', 'album_total']: + try: + # get the TRACKTOTAL/DISCTOTAL values + # return the first value that contains an integer +@@ -289,7 +289,7 @@ class VorbisComment(MetaData): + elif attr in self.ATTRIBUTE_MAP: + key = self.ATTRIBUTE_MAP[attr] + +- if attr in {'track_number', 'album_number'}: ++ if attr in ['track_number', 'album_number']: + try: + current_values = self[key] + for i in range(len(current_values)): +@@ -313,7 +313,7 @@ class VorbisComment(MetaData): + except KeyError: + # no current field with key, so add new one + self[key] = [u"%d" % (value)] +- elif attr in {'track_total', 'album_total'}: ++ elif attr in ['track_total', 'album_total']: + # look for standalone TRACKTOTAL/DISCTOTAL field + try: + current_values = self[key] +@@ -381,7 +381,7 @@ class VorbisComment(MetaData): + if attr in self.ATTRIBUTE_MAP: + key = self.ATTRIBUTE_MAP[attr] + +- if attr in {'track_number', 'album_number'}: ++ if attr in ['track_number', 'album_number']: + try: + current_values = self[key] + +@@ -407,7 +407,7 @@ class VorbisComment(MetaData): + except KeyError: + # no TRACKNUMBER/DISCNUMBER field to remove + pass +- elif attr in {'track_total', 'album_total'}: ++ elif attr in ['track_total', 'album_total']: + def slash_filter(unicode_string): + if u"/" not in unicode_string: + return unicode_string
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.