added the option for restarting stalled downloads

This commit is contained in:
huangjx
2021-10-06 15:21:14 +08:00
parent 118ff8ec31
commit 74a905e37f
7 changed files with 33 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class Youtube
private $format = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best';
private $options = [];
private $downloadDir;
private $timeout = 60 * 60 * 3; //3 hours
private $timeout = 60 * 60 * 10; //10 hours
private $outTpl = "/%(id)s-%(title)s.%(ext)s";
private $defaultDir = "/tmp/downloads";
private $env = [];