removed debugging statements for torrents
All checks were successful
Run Integration Tests / test (push) Successful in 18s
All checks were successful
Run Integration Tests / test (push) Successful in 18s
This commit is contained in:
parent
491df4e419
commit
b6c37452ca
3 changed files with 3 additions and 6 deletions
|
@ -94,9 +94,6 @@ func (tg *TorrentGalaxy) Search(query string, category string) ([]TorrentResult,
|
|||
title := strings.TrimSpace(titleDiv.Text())
|
||||
magnetLink, exists := s.Find("a[href^='magnet']").Attr("href")
|
||||
|
||||
fmt.Printf("Found title: %s\n", title) // Debugging statement
|
||||
fmt.Printf("Found magnet link: %s\n", magnetLink) // Debugging statement
|
||||
|
||||
if !exists {
|
||||
log.Printf("No magnet link found for title: %s", title)
|
||||
return
|
||||
|
|
2
files.go
2
files.go
|
@ -135,7 +135,7 @@ func fetchFileResults(query, safe, lang string, page int) []TorrentResult {
|
|||
continue
|
||||
}
|
||||
for _, r := range res {
|
||||
r.Magnet = removeMagnetLink(r.Magnet) // Remove "magnet:", prehaps useless now?
|
||||
r.Magnet = removeMagnetLink(r.Magnet) // Remove "magnet:", perhaps useless now?
|
||||
results = append(results, r)
|
||||
}
|
||||
}
|
||||
|
|
4
text.go
4
text.go
|
@ -62,10 +62,10 @@ func getTextResultsFromCacheOrFetch(cacheKey CacheKey, query, safe, lang string,
|
|||
go func() {
|
||||
results, exists := resultsCache.Get(cacheKey)
|
||||
if exists {
|
||||
printInfo("Cache hit")
|
||||
printDebug("Cache hit")
|
||||
cacheChan <- results
|
||||
} else {
|
||||
printInfo("Cache miss")
|
||||
printDebug("Cache miss")
|
||||
cacheChan <- nil
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Reference in a new issue