Skip to content

Commit

Permalink
Merge pull request #54 from JuniorJPDJ/old-python
Browse files Browse the repository at this point in the history
Fix python <=3.7 compatibility
  • Loading branch information
sampsyo authored Sep 28, 2021
2 parents b76e4d7 + 2a30a44 commit da26101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def fetch(self, mutagen_file):
for frame in mutagen_file.tags.getall(self.key):
if frame.desc.lower() == self.description.lower():
if mutagen_file.tags.version == (2, 3, 0) and self.split_v23:
return sum([el.split('/') for el in frame.text], start=[])
return sum((el.split('/') for el in frame.text), [])
else:
return frame.text
return []
Expand Down

0 comments on commit da26101

Please sign in to comment.