fix: Fix downloading a playlist as a TAR archive
This is the only time where youtube-dl returning an empty URL is not a problem.
This commit is contained in:
parent
17b9185e53
commit
edf4d4644d
3 changed files with 30 additions and 6 deletions
|
@ -155,7 +155,7 @@ class VideoDownload
|
|||
$urls = explode("\n", $this->getProp($url, $format, 'get-url', $password));
|
||||
|
||||
if (empty($urls[0])) {
|
||||
throw new Exception(_('youtube-dl returned an empty URL.'));
|
||||
throw new EmptyUrlException(_('youtube-dl returned an empty URL.'));
|
||||
}
|
||||
|
||||
return $urls;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue