mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-13 00:26:37 +08:00
fix subscription episode range dedup
This commit is contained in:
@@ -206,11 +206,14 @@ func (d *DownloadService) TorrentExistsByName(ctx context.Context, name string)
|
||||
return false
|
||||
}
|
||||
for _, torrent := range live {
|
||||
if downloadTitleCoversRequest(torrent.Name, name) {
|
||||
return true
|
||||
}
|
||||
current := normalizeTorrentName(torrent.Name)
|
||||
if current == "" {
|
||||
continue
|
||||
}
|
||||
if strings.Contains(current, query) || strings.Contains(query, current) {
|
||||
if current == query {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user