...
|
...
|
@@ -13,6 +13,11 @@ module.exports = { |
|
|
let params = opts.hash;
|
|
|
let urls = url.split('?');
|
|
|
let query = urls[1] || '';
|
|
|
let uri = urls[0];
|
|
|
|
|
|
if (uri.indexOf('http:') === 0) {
|
|
|
uri = uri.replace('http:', '');
|
|
|
}
|
|
|
|
|
|
if (query) {
|
|
|
query = query.replace(/{width}/g, params.w).replace(/{height}/g, params.h).replace(/{mode}/g, (params.mode || 2));
|
...
|
...
|
@@ -33,7 +38,7 @@ module.exports = { |
|
|
} else {
|
|
|
query = 'imageView2/2/interlace/1/q/' + (params.q || 75);
|
|
|
}
|
|
|
return urls[0] + '?' + query;
|
|
|
return uri + '?' + query;
|
|
|
} else {
|
|
|
return url;
|
|
|
}
|
...
|
...
|
|