diff --git a/files-torrentgalaxy.go b/files-torrentgalaxy.go index 78f08bd..51f51ca 100644 --- a/files-torrentgalaxy.go +++ b/files-torrentgalaxy.go @@ -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 diff --git a/files.go b/files.go index e05e89c..86d19f9 100755 --- a/files.go +++ b/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) } } diff --git a/text.go b/text.go index dd46a83..9b56ee6 100755 --- a/text.go +++ b/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 } }()