mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Fix
This commit is contained in:
parent
3e5b6e0046
commit
f37c28c1ee
3 changed files with 15 additions and 19 deletions
|
@ -13,4 +13,17 @@ index 1a96769..5842606 100644
|
|||
+ ));
|
||||
/** @var Video */
|
||||
$video = $ffmpeg->open(Storage::path('big/' . $photo->url));
|
||||
if (!($tmp = tempnam(sys_get_temp_dir(), 'lychee')) ||
|
||||
if (!($tmp = tempnam(sys_get_temp_dir(), 'lychee')) ||
|
||||
diff --git a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php b/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
index 9ececfe..106eadd 100644
|
||||
--- a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
+++ b/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
@@ -33,7 +33,7 @@ class FFprobe extends AdapterAbstract
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
- protected $toolPath;
|
||||
+ protected $toolPath = '/usr/bin/ffprobe';
|
||||
|
||||
/**
|
||||
* @var string
|
|
@ -146,11 +146,7 @@ ynh_add_config --template="../conf/user.css.example" --destination="$final_path/
|
|||
# PATCHS
|
||||
#=================================================
|
||||
|
||||
(cd $final_path/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php/
|
||||
patch -p1 < ../sources/app-00-add-ffprobe-path.patch)
|
||||
|
||||
(cd $final_path/app/Actions/Photo/Extensions/VideoEditing.php/
|
||||
patch -p1 < ../sources/app-01-add-ffprobe-path.patch)
|
||||
git apply ../conf/ffprobe.patch
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php b/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
index 9ececfe..106eadd 100644
|
||||
--- a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
+++ b/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php
|
||||
@@ -33,7 +33,7 @@ class FFprobe extends AdapterAbstract
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
- protected $toolPath;
|
||||
+ protected $toolPath = '/usr/bin/ffprobe';
|
||||
|
||||
/**
|
||||
* @var string
|
Loading…
Add table
Reference in a new issue