07-28-2024, 11:42 AM
(This post was last modified: 07-28-2024, 11:44 AM by Tim Curtis.
Edit Reason: eta
)
(07-28-2024, 02:06 AM)TheOldPresbyope Wrote: Yeah, the files in the OP's "Salsa de hoy" directory have a frankensteinian mashup of metadata. Three-character Frame ids are defined for id3v2.2; id3v2.3 moved to 4-character ids. There's also iTunes-like stuff and even some WMA. This all generates interesting messages in the various tools at my disposal. The files definitely need to be cleaned.
Defensive coding is good; as you say, the script shouldn't crash out. The question is, what messages should be passed back to the end user? I'm thinking just a razzberry:-)
Regards,
Kent
lol, here's what gets logged after the fix that prevents the script crash :-)
Code:
20240728 073924 worker: Job regen_thmcache
20240728 073924 thumb-gen: Start
20240728 073924 thumb-gen: Scan opt: Default
20240728 073924 thumb-gen: Priority: Embedded cover
20240728 073924 thumb-gen: Res,Qual: 600px,60
20240728 073924 thumb-gen: Px ratio: 1
20240728 073924 thumb-gen: Th width: 600
20240728 073924 thumb-gen: Thm qual: 60
20240728 073924 thumb-gen: Scanning: NAS, NVME, SDCARD, VFAT64
20240728 073927 thumb-gen: Error: imagecreatefromstring() failed: USB/VFAT64/Test_mixed/Alain/The Rolling Stones - 1-11 (I Can't Get No) Satisfaction.mp3
20240728 073928 thumb-gen: Error: Zend bad Frame ID (RGAD) in file: USB/VFAT64/Test_mixed/Atair/The_Enja_Birthday_Compilation/9 - Rabih Abou-Khalil - Dog River.mp3
20240728 073930 thumb-gen: Error: Zend bad Frame ID (TCP ) in file: USB/VFAT64/Test_mixed/Farenji/keb darge - legendary deep funk vol. 2/Keb Darge's Legendary Deep Funk Volume 2 - 20. Sons Of The Kingdom - Modernization.mp3
20240728 073930 thumb-gen: Error: Zend bad Frame ID (TCO ) in file: USB/VFAT64/Test_mixed/Farenji/Salsa de hoy/Yo no soy guapo - La Sonora Matancera & Vicentico Valdes.mp3
20240728 073930 thumb-gen: Error: Zend bad Frame ID (TP1 ) in file: USB/VFAT64/Test_mixed/Farenji/Salsa de hoy/Yo no soy guapo - La Sonora Matancera & Vicentico Valdes.mp3
20240728 073930 thumb-gen: Error: Zend bad Frame ID (TT2 ) in file: USB/VFAT64/Test_mixed/Farenji/Salsa de hoy/Yo no soy guapo - La Sonora Matancera & Vicentico Valdes.mp3
20240728 073930 thumb-gen: Error: Not a valid FLAC bitstream: USB/VFAT64/Test_mixed/Frans Meerhoff/Test2/Mary Wells - My Guy.flac
20240728 073931 thumb-gen: Error: Zend bad Frame ID (UFI?) in file: USB/VFAT64/Test_mixed/Genre Issue Files Except Track 10/1-11-High Score Screen.mp3
20240728 073931 thumb-gen: Error: Zend bad Frame ID (RGAD) in file: USB/VFAT64/Test_mixed/Genre Issue Files Except Track 10/1-11-High Score Screen.mp3
20240728 073934 thumb-gen: Error: Not a valid FLAC bitstream: USB/VFAT64/Test_mixed/Runaljod - Gap Var Ginnunga/12 - Dagr.flac
20240728 073935 thumb-gen: Done: 142 folders scanned, 142 thumbs created, 0 already in cache.
ETA: Anytime I need to go into the Zend code, extra coffee is required ;-)