Changeset 52254 for trunk/src/wp-includes/ID3/module.tag.id3v1.php
- Timestamp:
- 11/26/2021 03:04:10 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.tag.id3v1.php
r51901 r52254 32 32 } 33 33 34 $this->fseek(-256, SEEK_END); 35 $preid3v1 = $this->fread(128); 36 $id3v1tag = $this->fread(128); 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 37 44 38 45 if (substr($id3v1tag, 0, 3) == 'TAG') { … … 40 47 $info['avdataend'] = $info['filesize'] - 128; 41 48 49 $ParsedID3v1 = array(); 42 50 $ParsedID3v1['title'] = $this->cutfield(substr($id3v1tag, 3, 30)); 43 51 $ParsedID3v1['artist'] = $this->cutfield(substr($id3v1tag, 33, 30)); … … 298 306 146 => 'JPop', 299 307 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', 300 352 301 353 255 => 'Unknown',
Note: See TracChangeset
for help on using the changeset viewer.