Allowing for manually setting binary path for both Aria2 and Youtube-dl

This commit is contained in:
huangjx
2021-09-22 14:07:38 +08:00
parent 9a1d947589
commit 98e62df996
10 changed files with 49 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ class Helper
{
public const DOWNLOADTYPE = ['ARIA2' => 1, 'YOUTUBE-DL' => 2, 'OTHERS' => 3];
public const STATUS = ['ACTIVE' => 1, 'PAUSED' => 2, 'COMPLETE' => 3, 'ERROR' => 4];
public static function isUrl($URL)
{
$URLPattern = '%^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@|\d{1,3}(?:\.\d{1,3}){3}|(?:(?:[a-z\d\x{00a1}-\x{ffff}'