Merge branch 'main' into 3.0-dev

# Conflicts:
#	.github/workflows/release.yml
#	src/module/manager/renamer.py
This commit is contained in:
EstrellaXD
2023-05-19 12:08:40 +08:00
4 changed files with 49 additions and 15 deletions

View File

@@ -0,0 +1,15 @@
from module.network import RequestContent
from module.conf import settings
class RSSSearcher(RequestContent):
def __search_url(self, keywords: str) -> str:
keywords.replace(" ", "+")
url = f"{settings.rss_parser.custom_url}/RSS/Search?keyword={keywords}"
return url
def search_keywords(self, keywords: str) -> list[dict]:
url = self.__search_url(keywords)
torrents = self.get_torrents(url)
return torrents