Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Mar 8, 2020
1 parent 821ed37 commit 0f752b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eyed3/__init__.py
Expand Up @@ -20,7 +20,7 @@
class Error(Exception):
"""Base exception type for all eyed3 errors."""
def __init__(self, *args):
super(Error, self).__init__(*args)
super().__init__(*args)
if args:
# The base class will do exactly this if len(args) == 1,
# but not when > 1. Note, the 2.7 base class will, 3 will not.
Expand Down
5 changes: 2 additions & 3 deletions eyed3/id3/tag.py
Expand Up @@ -1182,14 +1182,13 @@ def fidHandled(fid):
description="Subtitle (converted)", text=tsst_frame.text)
converted_frames.append(tsst_frame)

# FIXME
# RVAD (v2.3) --> RVA2 (2.4)
# RVAD (v2.3) --> RVA2* (2.4)
if version == ID3_V2_4 and b"RVAD" in [f.id for f in flist]:
rvad = [f for f in flist if f.id == b"RVAD"][0]
for rva2 in rvad.toV24():
converted_frames.append(rva2)
flist.remove(rvad)
# RVA2 (v2.4) --> RVAD (2.3)
# RVA2* (v2.4) --> RVAD (2.3)
elif version == ID3_V2_3 and b"RVA2" in [f.id for f in flist]:
adj = frames.RelVolAdjFrameV23.VolumeAdjustments()
for rva2 in [f for f in flist if f.id == b"RVA2"]:
Expand Down

0 comments on commit 0f752b6

Please sign in to comment.