Lint
This commit is contained in:
parent
4c33c309a0
commit
7940446af3
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ class VideoDownload
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a youtube-dl process with the specified arguments
|
* Return a youtube-dl process with the specified arguments.
|
||||||
*
|
*
|
||||||
* @param string[] $arguments Arguments
|
* @param string[] $arguments Arguments
|
||||||
*
|
*
|
||||||
|
@ -86,7 +86,7 @@ class VideoDownload
|
||||||
{
|
{
|
||||||
$arguments = [
|
$arguments = [
|
||||||
'--'.$prop,
|
'--'.$prop,
|
||||||
$url
|
$url,
|
||||||
];
|
];
|
||||||
if (isset($format)) {
|
if (isset($format)) {
|
||||||
$arguments[] = '-f '.$format;
|
$arguments[] = '-f '.$format;
|
||||||
|
@ -219,7 +219,7 @@ class VideoDownload
|
||||||
] as $property => $option) {
|
] as $property => $option) {
|
||||||
if (isset($video->{$property})) {
|
if (isset($video->{$property})) {
|
||||||
$arguments[] = '--'.$option;
|
$arguments[] = '--'.$option;
|
||||||
$arguments[] = $video->{$property};
|
$arguments[] = $video->{$property};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ class VideoDownload
|
||||||
if (isset($video->rtmp_conn)) {
|
if (isset($video->rtmp_conn)) {
|
||||||
foreach ($video->rtmp_conn as $conn) {
|
foreach ($video->rtmp_conn as $conn) {
|
||||||
$arguments[] = '--conn';
|
$arguments[] = '--conn';
|
||||||
$arguments[] = $conn;
|
$arguments[] = $conn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue