Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jackett again - my bad #860

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/program/services/scrapers/jackett.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from program.media.item import Episode, MediaItem, Movie, Season, Show
from program.services.scrapers.shared import ScraperRequestHandler
from program.settings.manager import settings_manager
from program.utils.request import create_service_session, get_rate_limit_params, RateLimitExceeded, HttpMethod
from program.utils.request import create_service_session, get_rate_limit_params, RateLimitExceeded, HttpMethod, \
ResponseType


class JackettIndexer(BaseModel):
Expand Down Expand Up @@ -245,7 +246,7 @@ def _fetch_results(self, url: str, params: Dict[str, str], indexer_title: str, s
"""Fetch results from the given indexer"""
try:
response = self.request_handler.execute(HttpMethod.GET, url, params=params, timeout=self.settings.timeout)
return self._parse_xml(response.data)
return self._parse_xml(response.response.text)
except RateLimitExceeded:
logger.warning(f"Rate limit exceeded while fetching results for {search_type}: {indexer_title}")
return []
Expand Down
Loading