mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
warn on old-style paths
This commit is contained in:
parent
3384e963da
commit
f4b2cb58b2
1 changed files with 12 additions and 0 deletions
|
@ -98,6 +98,18 @@ function get_file_cache($conference, $filename)
|
|||
|
||||
function download($what, $conference, $url, $cache)
|
||||
{
|
||||
$info = parse_url($url);
|
||||
if(!isset($info['scheme']) || !isset($info['host']))
|
||||
{
|
||||
stderr(
|
||||
' !! %s url for conference %s does look like an old-style path: "%s". please update to a full http/https url',
|
||||
$what,
|
||||
$conference->getSlug(),
|
||||
$url
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
stdout(
|
||||
' downloading %s from %s to %s',
|
||||
$what,
|
||||
|
|
Loading…
Reference in a new issue