YS 3.4 : Media Converter Plugin Bug & Update

mastern

New Member
YetiShare User
Apr 24, 2013
56
1
0
Hi Adam,

I think Adam can validate or has a better solution.
I post here this news for an help to Media Converter Users to prevent error and bug.
Convert.php don't support $localFile with more dots "." in, like /var/www/vhosts/nsa.server.com/yetishare /plugins/mediaconverter/converter/_cache/bee54cced44c12f6684aca0136.webm

Try to replace the code in converter.php with :

Code:
// convert via ffmpeg
$fileExtension = current(array_map(strrev,explode(".", strrev($localFile))));
$convertedFilename      = current(explode(".".$fileExtension, $localFile)) . '_new.' . EXPORT_FILE_EXTENSION;
$convertedFilenameFinal = current(explode(".".$fileExtension, $localFile)) . '.' . EXPORT_FILE_EXTENSION;
....
I continue my bug track for the plugin, so will add soon if...

Regards,
Maverick
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Moving this to RFCs for better tracking. (I know it's not an RFC but it'll get seen better in there)