Skip to content

Commit b769300

Browse files
authored
Merge branch '0.9.x' into fix_image_frame_description
2 parents 0f97bc7 + 2ce393d commit b769300

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

eyed3/id3/frames.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class FrameException(Error):
3030
ALBUM_ARTIST_FID = b"TPE2" # noqa
3131
ORIG_ARTIST_FID = b"TOPE" # noqa
3232
COMPOSER_FID = b"TCOM" # noqa
33+
CONDUCTOR_FID = b"TPE3" # noqa
3334
ALBUM_FID = b"TALB" # noqa
3435
TRACKNUM_FID = b"TRCK" # noqa
3536
GENRE_FID = b"TCON" # noqa

eyed3/id3/tag.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,21 @@ def composer(self):
282282
def composer(self, v):
283283
self._setComposer(v)
284284

285+
@requireUnicode(1)
286+
def _setConductor(self, val):
287+
self.setTextFrame(frames.CONDUCTOR_FID, val)
288+
289+
def _getConductor(self):
290+
return self.getTextFrame(frames.CONDUCTOR_FID)
291+
292+
@property
293+
def conductor(self):
294+
return self._getConductor()
295+
296+
@conductor.setter
297+
def conductor(self, v):
298+
self._setConductor(v)
299+
285300
@requireUnicode(1)
286301
def _setAlbum(self, val):
287302
self.setTextFrame(frames.ALBUM_FID, val)

eyed3/plugins/classic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def PositiveIntArg(i):
6666

6767
g.add_argument("--composer", dest="composer",
6868
metavar="STRING", help=ARGS_HELP["--composer"])
69+
g.add_argument("--conductor", dest="conductor",
70+
metavar="STRING", help=ARGS_HELP["--conductor"])
6971
g.add_argument("--orig-artist", dest="orig_artist",
7072
metavar="STRING", help=ARGS_HELP["--orig-artist"])
7173
g.add_argument("-d", "--disc-num", type=PositiveIntArg, dest="disc_num",
@@ -566,6 +568,10 @@ def printTag(self, tag):
566568
tag.album_artist))
567569
if tag.composer:
568570
printMsg("%s: %s" % (boldText("composer"), tag.composer))
571+
572+
if tag.conductor:
573+
printMsg("%s: %s" % (boldText("conductor"), tag.conductor))
574+
569575
if tag.original_artist:
570576
printMsg("%s: %s" % (boldText("original artist"), tag.original_artist))
571577

@@ -1170,6 +1176,7 @@ def _getTemplateKeys():
11701176
"--track-offset": "Increment/decrement the track number by [-]N. "
11711177
"This option is applied after --track=N is set.",
11721178
"--composer": "Set the composer's name.",
1179+
"--conductor": "Set the conductor's name, mostly for orchestral or choir music.",
11731180
"--orig-artist": "Set the orignal artist's name. For example, a cover song can include "
11741181
"the orignal author of the track.",
11751182
}

0 commit comments

Comments
 (0)