Skip to content

Commit 484a8de

Browse files
committed
修订RSS发现的种子会被错误过滤的问题
1 parent ed8b1c7 commit 484a8de

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

backend/src/module/network/request_contents.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ async def get_torrents(
2323
if soup:
2424
parsed_items = rss_parser(soup)
2525
torrents: list[Torrent] = []
26-
if _filter is None:
27-
_filter = "|".join(settings.rss_parser.filter)
2826
for _title, torrent_url, homepage in parsed_items:
29-
if re.search(_filter, _title) is None:
27+
if _filter is None or re.search(_filter, _title) is None:
3028
torrents.append(
3129
Torrent(name=_title, url=torrent_url, homepage=homepage)
3230
)

0 commit comments

Comments
 (0)