Fix isValidAudio logic for remote URL
This commit is contained in:
parent
b53a5e9368
commit
a4aa368e59
@ -1036,7 +1036,7 @@ class Mp3Info {
|
|||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function isValidAudio($filename) {
|
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!');
|
throw new Exception('File ' . $filename . ' is not present!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user