-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update fails, invalid year ? #157
Comments
Yes, it looks like problem with parsing the YEAR tag. Try to change |
Didn't seem to produce a log file :(
|
I hacked a simple fwrite into the cliLog function, and that worked. The file in question logs this as the values
kid3 (KDE tag editor) displays this field as red Updating the tag works to continue indexing. Maybe postProcessYear should strip non numeric as a fallback rather than returning input ? |
More details of whats up from id3v2...
|
I tried to reproduce this error, but I can't. Could you please share this file (can be of course without music content)? |
I emailed the full file to info If I knew how to strip the music parts from the file I think I could attach just that here. This is on Fedora Core 36, PHP 8.1.7 |
Thanks for that file - it helped a lot. There are some strange chars in YEAR tag. In latest commit 500f748 I modified (as you suggested) BTW: I use PHP 8.0.18 and in my case this file didn't throw an error. Update continued, new album was added, but there was no data about track. |
Hello OMPD community! Today i found the same problem and saw the solution but im my mp3 file some has written in the field "year" the string "60s", which i think the creator of the mp3 tag fills in, because he/she didn't know the correct entry. With this file info and the new update.php you get the follwing error: I updated then line 1338 in update.php from
to
and the error went away. Greetings |
Thanks @karltestano for that - I finally corrected this issue in commit f2cf26e. I'm sorry it took me so long... Greetings |
Update time: | Update error! PHP Fatal ErrorUncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '??0, dr = NULL, composer ...' at line 29 in /home/ompd/update.php:1351 Stack trace: #0 /home/ompd/update.php(1351): mysqli_query(Object(mysqli), 'UPDATE track SE...') #1 /home/ompd/update.php(1222): fileInfo(Array, Object(getID3)) #2 /home/ompd/update.php(401): fileInfoLoop('') #3 /home/ompd/update.php(78): update('/exports/mp3/') #4 {main} thrown File: /home/ompd/update.php Line: 1351 \
The text was updated successfully, but these errors were encountered: