Download only if file absent
This commit is contained in:
@@ -113,7 +113,10 @@ sub __image_dl_subthread {
|
||||
$savepath = $c->{image_dl}->{dir} . "/" . $fname;
|
||||
}
|
||||
|
||||
unless (-f $savepath) {
|
||||
__dlfunc($str, $savepath);
|
||||
}
|
||||
|
||||
undef $savepath;
|
||||
undef $fname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user