mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-26 17:43:59 +00:00
Add id3 TOPE support
This commit is contained in:
@@ -123,6 +123,7 @@ class ID3File(File):
|
||||
'WCOP': 'license',
|
||||
'WOAR': 'website',
|
||||
'COMM': 'comment',
|
||||
'TOPE': 'originalartist',
|
||||
|
||||
# The following are informal iTunes extensions to id3v2:
|
||||
'TCMP': 'compilation',
|
||||
@@ -432,7 +433,7 @@ class ID3File(File):
|
||||
if frame.FrameID in ('TMCL', 'TIPL', 'IPLS'):
|
||||
for people in frame.people:
|
||||
if people[0] == role:
|
||||
frame.people.remove(people)
|
||||
frame.people.remove(people)
|
||||
elif name.startswith('comment:'):
|
||||
desc = name.split(':', 1)[1]
|
||||
if desc.lower()[:4] != 'itun':
|
||||
@@ -453,7 +454,7 @@ class ID3File(File):
|
||||
if frame.FrameID in ('TIPL', 'IPLS'):
|
||||
for people in frame.people:
|
||||
if people[0] == role:
|
||||
frame.people.remove(people)
|
||||
frame.people.remove(people)
|
||||
elif name == 'musicbrainz_recordingid':
|
||||
for key, frame in tags.items():
|
||||
if frame.FrameID == 'UFID' and frame.owner == 'http://musicbrainz.org':
|
||||
|
||||
@@ -88,6 +88,7 @@ TAG_NAMES = {
|
||||
'~rating': N_('Rating'),
|
||||
'artists': N_('Artists'),
|
||||
'work': N_('Work'),
|
||||
'originalartist': N_('Original Artist'),
|
||||
}
|
||||
|
||||
PRESERVED_TAGS = [
|
||||
|
||||
Reference in New Issue
Block a user