Skip to content

Commit a884c60

Browse files
committedJan 12, 2019
Remove query string in path names
1 parent 545c387 commit a884c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/crawler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module.exports = {
182182
sources.map(async ({ post, source }) => {
183183
const target = path.join(
184184
options.mediaRoot,
185-
path.basename(source)
185+
path.basename(url.parse(source).pathname)
186186
);
187187
await download(source, target);
188188
_.set(

0 commit comments

Comments
 (0)
Please sign in to comment.