🎨 Network assets to local assets ignore webpage
This commit is contained in:
parent
8b12b51c52
commit
3de21e0a9e
1 changed files with 5 additions and 0 deletions
|
@ -325,6 +325,11 @@ func NetAssets2LocalAssets(rootID string) (err error) {
|
|||
request := browserClient.R()
|
||||
request.SetRetryCount(1).SetRetryFixedInterval(3 * time.Second)
|
||||
resp, reqErr := request.Get(u)
|
||||
if strings.Contains(strings.ToLower(resp.GetContentType()), "text/html") {
|
||||
// 忽略超链接网页
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if nil != reqErr {
|
||||
logging.LogErrorf("download network asset [%s] failed: %s", u, reqErr)
|
||||
return ast.WalkContinue
|
||||
|
|
Loading…
Add table
Reference in a new issue