Package: python-mutagen
Version: 1.11-1
Severity: wishlist

Attached patch will add support for the non-standard iTunes frame type
TCMP, which is used by iTunes to flag songs as being part of a
compilation.
When flagged as part of a compilation, iTunes automatic file renaming
won't break the files apart by artist.

While this frame type is nonstandard, it's widely used due to iTunes.
http://www.id3.org/iTunes_Compilation_Flag

Patch attached.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-mutagen depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-central                0.5.15     register and build utility for Pyt

python-mutagen recommends no packages.

-- no debconf information
--- mutagen/id3.py~	2007-04-27 04:12:50.000000000 +0200
+++ mutagen/id3.py	2007-11-21 06:40:12.000000000 +0100
@@ -1224,6 +1224,7 @@
         return " / ".join(self.genres)
 
 class TCOP(TextFrame): "Copyright (c)"
+class TCMP(NumericTextFrame): "iTunes Compilation Flag"
 class TDAT(TextFrame): "Date of recording (DDMM)"
 class TDEN(TimeStampTextFrame): "Encoding Time"
 class TDOR(TimeStampTextFrame): "Original Release Time"
--- /usr/share/pycentral/python-mutagen/site-packages/mutagen/id3.py~	2007-11-21 06:40:12.000000000 +0100
+++ /usr/share/pycentral/python-mutagen/site-packages/mutagen/id3.py	2007-11-21 06:51:05.000000000 +0100
@@ -1734,6 +1735,7 @@
 class TP3(TPE3): "Conductor"
 class TP4(TPE4): "Interpreter/Remixer/Modifier"
 class TCM(TCOM): "Composer"
+class TCP(TCMP): "iTunes Compilation Flag"
 class TXT(TEXT): "Lyricist"
 class TLA(TLAN): "Audio Language(s)"
 class TCO(TCON): "Content Type (Genre)"

Reply via email to