1. John Pell
  2. AtomicParsley

Commits

John D Pell  committed 8b405fd

Added --subtitle option and tag '©st3'.

  • Participants
  • Parent commits 003847f
  • Branches default

Comments (0)

Files changed (1)

File src/main.cpp

View file
 #define OPT_ExtractPixToPath     'e'
 #define Meta_artist              'a'
 #define Meta_songtitle           's'
+#define Meta_subtitle            0xC5
 #define Meta_album               'b'
 #define Meta_tracknum            'k'
 #define Meta_disknum             'd'
         { "extractPixToPath", required_argument,  NULL,           OPT_ExtractPixToPath },
         { "artist",           required_argument,  NULL,           Meta_artist },
         { "title",            required_argument,  NULL,           Meta_songtitle },
+        { "subtitle",         required_argument,  NULL,           Meta_subtitle },
         { "album",            required_argument,  NULL,           Meta_album },
         { "genre",            required_argument,  NULL,           Meta_genre },
         { "tracknum",         required_argument,  NULL,           Meta_tracknum },
             break;
         }
 
+        case Meta_subtitle : {
+            APar_ScanAtoms(ISObasemediafile);
+            if ( !APar_assert(metadata_style == ITUNES_STYLE, 1, "subtitle") ) {
+                break;
+            }
+
+            AtomicInfo* titleData_atom = APar_MetaData_atom_Init("moov.udta.meta.ilst.�st3.data", optarg, AtomFlags_Data_Text);
+            APar_Unified_atom_Put(titleData_atom, optarg, UTF8_iTunesStyle_256glyphLimited, 0, 0);
+            break;
+        }
+
         case Meta_album : {
             APar_ScanAtoms(ISObasemediafile);
             if ( !APar_assert(metadata_style == ITUNES_STYLE, 1, "album") ) {