mirror of
https://codeberg.org/hyperreal/go-torrent-helper
synced 2024-11-01 08:43:10 +01:00
Filter "rc" from torrent filename string
This commit is contained in:
parent
4c494b635f
commit
d6bb7478f3
@ -33,7 +33,7 @@ func (q Qubes) AddNewTorrents(transmissionbt *transmissionrpc.Client) error {
|
||||
// Extract torrent URLs from web page contents
|
||||
var torrentURLs []string
|
||||
doc.Find("a").Each(func(i int, s *goquery.Selection) {
|
||||
if strings.Contains(s.Text(), q.Relver) && strings.Contains(s.Text(), "torrent") {
|
||||
if strings.Contains(s.Text(), q.Relver) && strings.Contains(s.Text(), "torrent") && !strings.Contains(s.Text(), "rc") {
|
||||
torrentURLs = append(torrentURLs, fmt.Sprintf("%s/%s", q.URL, s.Text()))
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user