mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-20 12:11:29 +08:00
feat: update parser interface to include context in Parse method
This commit is contained in:
@@ -43,7 +43,7 @@ func ParseWithContext(ctx context.Context, url string) (*parser.Item, error) {
|
||||
if !pser.CanHandle(url) {
|
||||
continue
|
||||
}
|
||||
item, err := pser.Parse(url)
|
||||
item, err := pser.Parse(ctx, url)
|
||||
if err != nil {
|
||||
errCh <- err
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user