diff --git a/appinfo/info.xml b/appinfo/info.xml index e29bfae..14cacd2 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Aria2 and youtube-dl web gui for nextcloud built-in torrent search;Start and stop Aria2 process, manage Aria2 from the web; Download videos from youtube, twitter and other sites; - 0.3.5 + 0.4.0 agpl jiaxinhuang NCDownloader diff --git a/bin/youtube-dl b/bin/youtube-dl new file mode 100755 index 0000000..3417afc Binary files /dev/null and b/bin/youtube-dl differ diff --git a/lib/Tools/Youtube.php b/lib/Tools/Youtube.php index f6b02e9..3d2ad0d 100644 --- a/lib/Tools/Youtube.php +++ b/lib/Tools/Youtube.php @@ -30,9 +30,8 @@ class Youtube if (isset($binary) && @is_executable($binary)) { $this->bin = $binary; } else { - $this->bin = Helper::findBinaryPath('youtube-dl'); + $this->bin = Helper::findBinaryPath('youtube-dl',__DIR__."/../../bin/youtube-dl"); } - $this->setDownloadDir($downloadDir); if (!empty($settings)) { foreach ($settings as $key => $value) {