fixed the issue of rendering url valid when it contains white spaces at its begining

This commit is contained in:
huangjx
2022-04-20 21:11:09 +08:00
parent 78487563f3
commit aa1bf42ccc
4 changed files with 8 additions and 7 deletions

View File

@@ -104,9 +104,9 @@ class Youtube
return $this;
}
public static function create()
public static function create($options)
{
return new self();
return new self($options);
}
public function setDownloadDir($dir)