feat: add Kemono parser with download info extraction and API handling

This commit is contained in:
krau
2025-08-23 20:18:02 +08:00
parent 3aa1e2eaed
commit 37c32a23d4
6 changed files with 296 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (p *TwitterParser) Parse(ctx context.Context, u string) (*parser.Item, erro
resources := make([]parser.Resource, 0, len(fxResp.Tweet.Media.All))
for _, media := range fxResp.Tweet.Media.All {
var size int64
resp, err := p.client.Get(media.URL)
resp, err := p.client.Head(media.URL)
if err == nil {
size = resp.ContentLength
resp.Body.Close()