mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-01 09:40:59 +08:00
修正类重载忘改函数了
This commit is contained in:
@@ -17,7 +17,7 @@ class TorrentInfo:
|
||||
class RequestContent(RequestURL):
|
||||
# Mikanani RSS
|
||||
def get_torrents(self, _url: str) -> [TorrentInfo]:
|
||||
soup = self.session.get_content(_url)
|
||||
soup = self.get_content(_url)
|
||||
torrent_titles = [item.title.string for item in soup.find_all("item")]
|
||||
torrent_urls = [item.get("url") for item in soup.find_all("enclosure")]
|
||||
torrents = []
|
||||
@@ -27,11 +27,11 @@ class RequestContent(RequestURL):
|
||||
return torrents
|
||||
|
||||
def get_torrent(self, _url) -> TorrentInfo:
|
||||
soup = self.session.get_content(_url)
|
||||
soup = self.get_content(_url)
|
||||
item = soup.find("item")
|
||||
enclosure = item.find("enclosure")
|
||||
return TorrentInfo(item.title.string, enclosure["url"])
|
||||
|
||||
# API JSON
|
||||
def get_json(self, _url) -> dict:
|
||||
return self.session.get_content(_url, content="json")
|
||||
return self.get_content(_url, content="json")
|
||||
|
||||
Reference in New Issue
Block a user