summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 19:57:26 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 19:57:26 +0100
commitd7c8981ca96dcf0e5b7a2b843d4feee6f37c3b19 (patch)
tree301be4ef80a79c7ac1919a58ce3474c35ac3f715
parentb5dbef1a6235690fc0367a3bb449629c6976c2e7 (diff)
downloadliberty-d7c8981ca96dcf0e5b7a2b843d4feee6f37c3b19.tar.gz
liberty-d7c8981ca96dcf0e5b7a2b843d4feee6f37c3b19.tar.bz2
liberty-d7c8981ca96dcf0e5b7a2b843d4feee6f37c3b19.zip
Move getid3 to external labraries management
-rwxr-xr-xplugins/mime.audio.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mime.audio.php b/plugins/mime.audio.php
index 6ba7908..144a77d 100755
--- a/plugins/mime.audio.php
+++ b/plugins/mime.audio.php
@@ -227,8 +227,8 @@ function mime_audio_converter( &$pParamHash ) {
$log['success'] = 'Successfully converted to mp3 audio';
// now that we have a new mp3 file, we might as well copy the tags accross in case someone downloads it
- require_once UTIL_PKG_INCLUDE_PATH.'getID3/getid3/getid3.php';
- require_once UTIL_PKG_INCLUDE_PATH.'getID3/getid3/getid3.lib.php';
+ require_once EXTERNAL_LIBS_PATH.'getid3/getid3/getid3.php';
+ require_once EXTERNAL_LIBS_PATH.'getid3/getid3/getid3.lib.php';
$getID3 = new \getID3;
// we silence this since this will spew lots of ugly errors when using UTF-8 and some odd character in the file ID
$meta = @$getID3->analyze( $source );
@@ -409,10 +409,10 @@ function mime_audio_update_tags( $pFile, $pMetaData ) {
$ret = null;
if( !empty( $pFile ) && is_file( $pFile ) && is_array( $pMetaData )) {
// we need to initiate getID3 for the writer to work
- require_once UTIL_PKG_INCLUDE_PATH.'getid3/getid3/getid3.php';
+ require_once EXTERNAL_LIBS_PATH.'getid3/getid3/getid3.php';
$getID3 = new \getID3;
- require_once UTIL_PKG_INCLUDE_PATH.'getid3/getid3/write.php';
+ require_once EXTERNAL_LIBS_PATH.'getid3/getid3/write.php';
// Initialize getID3 tag-writing module
$tagwriter = new getid3_writetags();
$tagwriter->filename = $pFile;