diff options
| author | Bobby <[email protected]> | 2026-02-26 15:56:42 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-26 15:56:42 +0530 |
| commit | 303f5beefb534a1684a2ec6364672d7f15f42c10 (patch) | |
| tree | 095afe29e2bbc7aabf3897193b6d535e47158ab1 /utils/mal/client.go | |
| parent | 627c2c239e0a44b6363a9f02235a73f5e2c81d2e (diff) | |
| download | metachan-main.tar.xz metachan-main.zip | |
Diffstat (limited to 'utils/mal/client.go')
| -rw-r--r-- | utils/mal/client.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/utils/mal/client.go b/utils/mal/client.go index 9bc5d98..1cbb26a 100644 --- a/utils/mal/client.go +++ b/utils/mal/client.go @@ -67,16 +67,6 @@ func makeRequest(targetURL string) (*goquery.Document, error) { if parseErr != nil { return nil, fmt.Errorf("failed to parse HTML from %s: %w", targetURL, parseErr) } - - pageTitle := document.Find("title").Text() - logger.Debugf("MALClient", "Page title for %s: %q", targetURL, pageTitle) - - htmlContent, _ := document.Html() - if len(htmlContent) > 500 { - htmlContent = htmlContent[:500] - } - logger.Debugf("MALClient", "HTML preview for %s: %s", targetURL, htmlContent) - return document, nil } @@ -107,4 +97,4 @@ func makeRequest(targetURL string) (*goquery.Document, error) { func getBackoffDuration(attempt int) time.Duration { exponentialDelay := time.Duration(float64(backoffBase) * math.Pow(2, float64(attempt-1))) return cfbypass.AddJitter(exponentialDelay) -}
\ No newline at end of file +} |
