Add 'opus' extension to download rules
Add 'opus' extension to download rules
This commit is contained in:
@@ -30,7 +30,7 @@ class Helper
|
||||
public function getDownloadInfo(string $output): ?array
|
||||
{
|
||||
$rules = '#\[(?<module>(download|ExtractAudio|VideoConvertor|Merger|ffmpeg))\]((\s+|\s+Converting.*;\s+)Destination:\s+|\s+Merging formats into\s+\")' .
|
||||
'(?<filename>.*\.(?<ext>(mp4|mp3|aac|webm|m4a|ogg|3gp|mkv|wav|flv)))#i';
|
||||
'(?<filename>.*\.(?<ext>(mp4|mp3|aac|webm|m4a|ogg|3gp|mkv|wav|flv|opus)))#i';
|
||||
|
||||
if (preg_match($rules, $output, $matches)) {
|
||||
return $matches;
|
||||
|
||||
Reference in New Issue
Block a user