getid3_apetag example

if (isset($lyrics3offset) && isset($lyrics3version) && isset($lyrics3size)) {
            $info['avdataend'] = $lyrics3offset;
            $this->getLyrics3Data($lyrics3offset$lyrics3version$lyrics3size);

            if (!isset($info['ape'])) {
                if (isset($info['lyrics3']['tag_offset_start'])) {
                    $GETID3_ERRORARRAY = &$info['warning'];
                    getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.apetag.php', __FILE__, true);
                    $getid3_temp = new getID3();
                    $getid3_temp->openfile($this->getid3->filename, $this->getid3->info['filesize']$this->getid3->fp);
                    $getid3_apetag = new getid3_apetag($getid3_temp);
                    $getid3_apetag->overrideendoffset = $info['lyrics3']['tag_offset_start'];
                    $getid3_apetag->Analyze();
                    if (!empty($getid3_temp->info['ape'])) {
                        $info['ape'] = $getid3_temp->info['ape'];
                    }
                    if (!empty($getid3_temp->info['replay_gain'])) {
                        $info['replay_gain'] = $getid3_temp->info['replay_gain'];
                    }
                    unset($getid3_temp$getid3_apetag);
                } else {
                    $this->warning('Lyrics3 and APE tags appear to have become entangled (most likely due to updating the APE tags with a non-Lyrics3-aware tagger)');
                }
Home | Imprint | This part of the site doesn't use cookies.