No changes between revisions
/trunk/phpstan.neon.dist |
0,0 → 1,18 |
|
# Attention: Before running PHPstan, run "ln -s ytdwn ytdwn.php" |
|
parameters: |
level: 5 |
fileExtensions: |
- php |
- phps |
paths: |
- . |
excludePaths: |
analyseAndScan: |
- .phpstan.tmp |
tmpDir: .phpstan.tmp |
ignoreErrors: |
- '#is always (true|false)\.#' |
- '#Call to function assert\(\) with false will always evaluate to false\.#' |
#- '#with no typehint specified\.#' |
/trunk/youtube_functions.inc.phps |
201,7 → 201,7 |
} |
|
# Short format |
if (($vid === false) && (preg_match("@https{0,1}://(www\\.|)youtu\\.be/([a-zA-Z0-9_-]{11}))@ismU", $url, $m))) { |
if (($vid === false) && (preg_match("@https{0,1}://(www\\.|)youtu\\.be/([a-zA-Z0-9_-]{11})@ismU", $url, $m))) { |
$vid = $m[2]; |
} |
|
/trunk/ytdwn |
411,7 → 411,7 |
if (!empty(_getResultcache())) { |
$stats = yt_get_playlist_stats($playlist_id); |
if ($stats === false) { |
fwrite(STDERR, "Cannot get stats for playlist with ID '$channel_id'\n"); |
fwrite(STDERR, "Cannot get stats for playlist with ID '$playlist_id'\n"); |
return; |
} |
$videocount = $stats['itemCount']; |
791,7 → 791,7 |
|
if ($allow_creation_outputdir) { |
if (!is_dir($out)) { |
mkdir($out, true); |
mkdir($out, 0777, true); |
if (!is_dir($out)) { |
fwrite(STDERR, "Output directory '$out' does not exist.\n"); |
exit(1); |
/trunk |
Property changes: |
Modified: svn:ignore |
ffmpeg |
youtube-dl |
upload_to_vts |
+phpstan.neon |
+.phpstan.tmp |