Fix isValidAudio logic for remote URL

This commit is contained in:
Paurakh Sharma Humagain 2021-11-25 13:42:48 +01:00 committed by GitHub
parent b53a5e9368
commit a4aa368e59
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!');
}