Add 'opus' extension to download rules

Add 'opus' extension to download rules
This commit is contained in:
darkpisto
2025-11-25 18:10:44 +01:00
committed by GitHub
parent 636025d80f
commit 670f71a57d

View File

@@ -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;