From 2bd9e06cc1c5d330eac187362f86ca7de7fae91a Mon Sep 17 00:00:00 2001 From: arantes555 Date: Thu, 26 Feb 2015 20:22:00 +0100 Subject: [PATCH] more complete raw mp3 object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enables to get the file info from the MP3, such as the song’s length. Otherwise changes nothing --- mutagenwrapper/_mp3.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mutagenwrapper/_mp3.py b/mutagenwrapper/_mp3.py index ed0f224..b80bda5 100644 --- a/mutagenwrapper/_mp3.py +++ b/mutagenwrapper/_mp3.py @@ -1,7 +1,8 @@ import re -from mutagen.id3 import ID3, TextFrame -import mutagen.id3 +from mutagen.mp3 import MP3 +from mutagen.id3 import TextFrame +import mutagen.mp3 from ._wrappers import FreeformTagsWrapper from ._handlers import TagHandler, TextTagHandler, PairTagHandler @@ -66,7 +67,7 @@ def _set_override_me(self, tags, value): tags[self.original_key].text = value -class ID3Hack(ID3): +class ID3Hack(MP3): def loaded_frame(self, tag): key = tag.HashKey