Merge pull request from wdr-data/fix-skip-source

fix: allow asset url function to indicate skipping
This commit is contained in:
Chris Willis-Ford 2018-06-11 11:44:58 -07:00 committed by GitHub
commit 8461b833ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,10 @@ class WebHelper extends Helper {
if (urlFunction) {
const url = urlFunction(asset);
if (url === false) {
tryNextSource();
return;
}
nets({url: url}, (err, resp, body) => {
// body is a Buffer