Skip to content
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

Fix longitude sync using ffprobe #206

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

tanty
Copy link

@tanty tanty commented May 30, 2023

ffprobe may provide the longitude value as:

"
location : +60.1568+024.8577/
"

Hence, this will result in a piwigo-videojs longitude value of:

"
longitude: +024.8577/
"

That will lead to the following fatal error:

"
Fatal error: Uncaught mysqli_sql_exception: Data truncated for column 'longitude' at row 1 in /app/www/public/include/dblayer/functions_mysqli.inc.php:132 Stack trace: #0 /app/www/public/include/dblayer/functions_mysqli.inc.php(132): mysqli->query() #1 /config/www/plugins/piwigo-videojs/admin/admin_photo.php(126): pwg_query() #2 /app/www/public/admin/plugin.php(53): include_once('...') #3 /app/www/public/admin.php(345): include('...') #4 {main} thrown in /app/www/public/include/dblayer/functions_mysqli.inc.php on line 132
"

Fixes: 5e9b209 (Add support for exiftool and ffprobe)
Closes: #167

Suggested-by: chrud

ffprobe may provide the longitude value as:

  "
    location        : +60.1568+024.8577/
  "

Hence, this will result in a piwigo-videojs longitude value of:

  "
    longitude: +024.8577/
  "

That will lead to the following fatal error:

  "
    Fatal error: Uncaught mysqli_sql_exception: Data truncated for column 'longitude' at row 1 in /app/www/public/include/dblayer/functions_mysqli.inc.php:132 Stack trace: #0 /app/www/public/include/dblayer/functions_mysqli.inc.php(132): mysqli->query() Piwigo#1 /config/www/plugins/piwigo-videojs/admin/admin_photo.php(126): pwg_query() Piwigo#2 /app/www/public/admin/plugin.php(53): include_once('...') Piwigo#3 /app/www/public/admin.php(345): include('...') Piwigo#4 {main} thrown in /app/www/public/include/dblayer/functions_mysqli.inc.php on line 132
  "

Fixes: 5e9b209 (Add support for exiftool and ffprobe)
Closes: Piwigo#167

Suggested-by: chrud
@xbgmsharp xbgmsharp merged commit b12c697 into Piwigo:master May 31, 2023
@xbgmsharp
Copy link
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metadata sync fails - ffprobe does not properly parse longitude tag from mp4 video
2 participants