Merge pull request #23 from paurakhsharma/patch-1

Fix isValidAudio logic for remote URL
This commit is contained in:
Sergey 2022-01-01 17:01:34 +03:00 committed by GitHub
commit e24b66463f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1036,7 +1036,7 @@ class Mp3Info {
* @throws \Exception
*/
public static function isValidAudio($filename) {
if (!file_exists($filename) && strpos($filename, '://')) {
if (!file_exists($filename) && strpos($filename, '://') == false) {
throw new Exception('File ' . $filename . ' is not present!');
}