265 case 'cover art (other)': |
265 case 'cover art (other)': |
266 case 'cover art (performance)': |
266 case 'cover art (performance)': |
267 case 'cover art (publisher logo)': |
267 case 'cover art (publisher logo)': |
268 case 'cover art (recording)': |
268 case 'cover art (recording)': |
269 case 'cover art (studio)': |
269 case 'cover art (studio)': |
270 // list of possible cover arts from http://taglib-sharp.sourcearchive.com/documentation/2.0.3.0-2/Ape_2Tag_8cs-source.html |
270 // list of possible cover arts from https://github.com/mono/taglib-sharp/blob/taglib-sharp-2.0.3.2/src/TagLib/Ape/Tag.cs |
271 if (is_array($thisfile_ape_items_current['data'])) { |
271 if (is_array($thisfile_ape_items_current['data'])) { |
272 $this->warning('APEtag "'.$item_key.'" should be flagged as Binary data, but was incorrectly flagged as UTF-8'); |
272 $this->warning('APEtag "'.$item_key.'" should be flagged as Binary data, but was incorrectly flagged as UTF-8'); |
273 $thisfile_ape_items_current['data'] = implode("\x00", $thisfile_ape_items_current['data']); |
273 $thisfile_ape_items_current['data'] = implode("\x00", $thisfile_ape_items_current['data']); |
274 } |
274 } |
275 list($thisfile_ape_items_current['filename'], $thisfile_ape_items_current['data']) = explode("\x00", $thisfile_ape_items_current['data'], 2); |
275 list($thisfile_ape_items_current['filename'], $thisfile_ape_items_current['data']) = explode("\x00", $thisfile_ape_items_current['data'], 2); |
330 } |
330 } |
331 } |
331 } |
332 $info['ape']['comments']['picture'][] = $comments_picture_data; |
332 $info['ape']['comments']['picture'][] = $comments_picture_data; |
333 unset($comments_picture_data); |
333 unset($comments_picture_data); |
334 } |
334 } |
335 } while (false); |
335 } while (false); // @phpstan-ignore-line |
336 break; |
336 break; |
337 |
337 |
338 default: |
338 default: |
339 if (is_array($thisfile_ape_items_current['data'])) { |
339 if (is_array($thisfile_ape_items_current['data'])) { |
340 foreach ($thisfile_ape_items_current['data'] as $comment) { |
340 foreach ($thisfile_ape_items_current['data'] as $comment) { |