def _trackers(self) -> list: trackers = fetch_jackett_indexers(self.nefarious_settings) seed_only_trackers = [] # fetch all active indexers and separate any configured as "seed only" if self.nefarious_settings.jackett_indexers_seed: for tracker, seed_only in self.nefarious_settings.jackett_indexers_seed.items( ): if seed_only and tracker in trackers: seed_only_trackers.append(tracker) trackers.remove(tracker) if self.search_seed_only: return seed_only_trackers else: return trackers
def configured_indexers(self, request): nefarious_settings = NefariousSettings.get() return Response(fetch_jackett_indexers(nefarious_settings))
def _trackers(self) -> list: return fetch_jackett_indexers(self.nefarious_settings)