Changeset 51901 for trunk/src/wp-includes/ID3/module.tag.id3v1.php
- Timestamp:
- 10/10/2021 01:15:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.tag.id3v1.php
r51900 r51901 32 32 } 33 33 34 if($info['filesize'] < 256) { 35 $this->fseek(-128, SEEK_END); 36 $preid3v1 = ''; 37 $id3v1tag = $this->fread(128); 38 } else { 39 $this->fseek(-256, SEEK_END); 40 $preid3v1 = $this->fread(128); 41 $id3v1tag = $this->fread(128); 42 } 43 34 $this->fseek(-256, SEEK_END); 35 $preid3v1 = $this->fread(128); 36 $id3v1tag = $this->fread(128); 44 37 45 38 if (substr($id3v1tag, 0, 3) == 'TAG') { … … 47 40 $info['avdataend'] = $info['filesize'] - 128; 48 41 49 $ParsedID3v1 = array();50 42 $ParsedID3v1['title'] = $this->cutfield(substr($id3v1tag, 3, 30)); 51 43 $ParsedID3v1['artist'] = $this->cutfield(substr($id3v1tag, 33, 30)); … … 306 298 146 => 'JPop', 307 299 147 => 'Synthpop', 308 148 => 'Abstract',309 149 => 'Art Rock',310 150 => 'Baroque',311 151 => 'Bhangra',312 152 => 'Big Beat',313 153 => 'Breakbeat',314 154 => 'Chillout',315 155 => 'Downtempo',316 156 => 'Dub',317 157 => 'EBM',318 158 => 'Eclectic',319 159 => 'Electro',320 160 => 'Electroclash',321 161 => 'Emo',322 162 => 'Experimental',323 163 => 'Garage',324 164 => 'Global',325 165 => 'IDM',326 166 => 'Illbient',327 167 => 'Industro-Goth',328 168 => 'Jam Band',329 169 => 'Krautrock',330 170 => 'Leftfield',331 171 => 'Lounge',332 172 => 'Math Rock',333 173 => 'New Romantic',334 174 => 'Nu-Breakz',335 175 => 'Post-Punk',336 176 => 'Post-Rock',337 177 => 'Psytrance',338 178 => 'Shoegaze',339 179 => 'Space Rock',340 180 => 'Trop Rock',341 181 => 'World Music',342 182 => 'Neoclassical',343 183 => 'Audiobook',344 184 => 'Audio Theatre',345 185 => 'Neue Deutsche Welle',346 186 => 'Podcast',347 187 => 'Indie-Rock',348 188 => 'G-Funk',349 189 => 'Dubstep',350 190 => 'Garage Rock',351 191 => 'Psybient',352 300 353 301 255 => 'Unknown',
Note: See TracChangeset
for help on using the changeset viewer.