Skip to content

Commit

Permalink
fix issue #791 #782 (#796)
Browse files Browse the repository at this point in the history
* fix issue #791 #782

* Update extractors/bilibili/bilibili.go

Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>

* remove unnecessry output

Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
  • Loading branch information
Botong Chu and iawia002 committed Oct 4, 2020
1 parent 67298d5 commit b772d13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extractors/bilibili/bilibili.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ func (e *extractor) Extract(url string, option types.Options) ([]*types.Data, er
if err != nil {
return nil, err
}

// set thread number to 1 manually to avoid http 412 error
option.ThreadNumber = 1
fmt.Printf("Warning: Multi thread download is no longer supported by BiliBili, use single thread instead.\n")

if strings.Contains(url, "bangumi") {
// handle bangumi
return extractBangumi(url, html, option)
Expand Down

0 comments on commit b772d13

Please sign in to comment.