leosongwei / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

mid3v2 should support POPM tag #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if you could set the POPM tag from the command line (would be 
useful in shell scripts, etc).  From what I can tell, the mutagen library 
supports POPM, but there's no syntax from the mid3v2 front end (and 
unfortunately my Python is not up to snuff).

Original issue reported on code.google.com by snurgle@gmail.com on 17 Sep 2010 at 8:23

GoogleCodeExporter commented 9 years ago
So, The support for POPM is there in the mid3v2 script, however, there's an 
error.   You'll have to edit your python script. 
Mine was in /usr/share/pyshared/mutagen
edit id3.py
Find "Class POPM(Frame)" line, on approximately line 1539

change the following 2 lines

_framespec = [ Latin1TextSpec('email'), IntegerSpec('rating'), 
IntegerSpec('count') ]
_framespec = [ Latin1TextSpec('email'), IntegerSpec('rating') ]

    def _pprint(self): return "%s=%s %s/255" % (
        self.email, self.rating, self.count )
    def _pprint(self): return "%s, %s" % (
        self.rating, self.email )

I know i edited it a little funky, but this works better for me, until it's 
fixed for real by the team.

Original comment by roy.rico on 17 Feb 2011 at 8:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r104.

Original comment by joe.wreschnig@gmail.com on 17 Apr 2011 at 12:05