Ejemplo n.º 1
0
 def __init__(self, filepath):
     """
     :param filepath: File path to MP3.
     :type filepath: string, unicode
     
     :raise MP3DetailsException: Raised if the file is not MP3.
     
     """
     super(MP3Details, self).__init__(filepath)
     ID3TagDescriptor.initialize_owner(self, filepath)
     MPEGAudioDescriptor.initialize_owner(self, filepath)
Ejemplo n.º 2
0
 def __init__(self, filepath):
     """
     :param filepath: File path to MP3.
     :type filepath: string, unicode
     
     :raise MP3DetailsException: Raised if the file is not MP3.
     
     """
     super(MP3Details, self).__init__(filepath)
     ID3TagDescriptor.initialize_owner(self, filepath)
     MPEGAudioDescriptor.initialize_owner(self, filepath)
Ejemplo n.º 3
0
class MP3Details(SongFileDetails):
    """MP3 details"""
    title = ID3TagDescriptor("TIT2", "TIT2", "TT2", "title")
    artist = ID3TagDescriptor("TPE1", "TPE1", "TP1", "artist")
    album = ID3TagDescriptor("TALB", "TALB", "TAL", "album")
    year = ID3TagDescriptor("TYER", "TYER", "TYE", "album", int)
    track = ID3TagDescriptor("TRCK", "TRCK", "TRK", "track", _track_convert)
    genre = ID3TagDescriptor("TCON", "TCON", "TCO", "genre", _genre_convert)
    composer = ID3TagDescriptor("TCOM", "TCOM", "TCM")
    comment = ID3TagDescriptor("COMM", "COMM", "COM")
    duration = MPEGAudioDescriptor("duration")

    def __init__(self, filepath):
        """
        :param filepath: File path to MP3.
        :type filepath: string, unicode
        
        :raise MP3DetailsException: Raised if the file is not MP3.
        
        """
        super(MP3Details, self).__init__(filepath)
        ID3TagDescriptor.initialize_owner(self, filepath)
        MPEGAudioDescriptor.initialize_owner(self, filepath)

    def save(self):
        """Save changes to the MP3"""
        ID3TagDescriptor.save(self)
Ejemplo n.º 4
0
 def save(self):
     """Save changes to the MP3"""
     ID3TagDescriptor.save(self)
Ejemplo n.º 5
0
 def save(self):
     """Save changes to the MP3"""
     ID3TagDescriptor.save(self)