Skip to content

Commit

Permalink
fix: correct attribute names in zilean scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight authored and dreulavelle committed Aug 15, 2024
1 parent 9000e77 commit 6e26304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/program/scrapers/zilean.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ def api_scrape(self, item: MediaItem) -> tuple[Dict[str, str], int]:
torrents: Dict[str, str] = {}

for result in response.data:
if not result.rawTitle or not result.infoHash:
if not result.raw_title or not result.info_hash:
continue

torrents[result.infoHash] = result.rawTitle
torrents[result.info_hash] = result.raw_title

return torrents, len(response.data)

0 comments on commit 6e26304

Please sign in to comment.