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

refactor: remove annatar scraper #845

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
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: 0 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@ RIVEN_SCRAPING_ORIONOID_PARAMETERS_VIDEOQUALITY=sd_hd8k # See the Orionoid API
RIVEN_SCRAPING_ORIONOID_PARAMETERS_LIMITCOUNT=5 # See the Orionoid API docs for more information on these parameters.
RIVEN_SCRAPING_ORIONOID_TIMEOUT=30
RIVEN_SCRAPING_ORIONOID_RATELIMIT=true
RIVEN_SCRAPING_ANNATAR_ENABLED=false
RIVEN_SCRAPING_ANNATAR_URL=http://annatar.elfhosted.com
RIVEN_SCRAPING_ANNATAR_LIMIT=2000
RIVEN_SCRAPING_ANNATAR_TIMEOUT=30
RIVEN_SCRAPING_ANNATAR_RATELIMIT=true
RIVEN_SCRAPING_TORBOX_SCRAPER_ENABLED=false
RIVEN_SCRAPING_TORBOX_SCRAPER_TIMEOUT=30
RIVEN_SCRAPING_MEDIAFUSION_ENABLED=false
Expand Down
2 changes: 0 additions & 2 deletions src/program/services/scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from program.media.item import Episode, MediaItem, Movie, Season, Show
from program.media.state import States
from program.media.stream import Stream
from program.services.scrapers.annatar import Annatar
from program.services.scrapers.comet import Comet
from program.services.scrapers.jackett import Jackett
from program.services.scrapers.knightcrawler import Knightcrawler
Expand All @@ -27,7 +26,6 @@ def __init__(self):
self.initialized = False
self.settings = settings_manager.settings.scraping
self.services = {
Annatar: Annatar(),
Torrentio: Torrentio(),
Knightcrawler: Knightcrawler(),
Orionoid: Orionoid(),
Expand Down
116 changes: 0 additions & 116 deletions src/program/services/scrapers/annatar.py

This file was deleted.

9 changes: 0 additions & 9 deletions src/program/settings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,6 @@ class ProwlarrConfig(Observable):
limiter_seconds: int = 60


class AnnatarConfig(Observable):
enabled: bool = False
url: str = "http://annatar.elfhosted.com"
limit: int = 2000
timeout: int = 30
ratelimit: bool = True


class TorBoxScraperConfig(Observable):
enabled: bool = False
timeout: int = 30
Expand All @@ -293,7 +285,6 @@ class ScraperModel(Observable):
jackett: JackettConfig = JackettConfig()
prowlarr: ProwlarrConfig = ProwlarrConfig()
orionoid: OrionoidConfig = OrionoidConfig()
annatar: AnnatarConfig = AnnatarConfig()
torbox_scraper: TorBoxScraperConfig = TorBoxScraperConfig()
mediafusion: MediafusionConfig = MediafusionConfig()
zilean: ZileanConfig = ZileanConfig()
Expand Down
6 changes: 3 additions & 3 deletions src/program/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
# TorBoxDownloader,
from program.services.libraries import SymlinkLibrary
from program.services.scrapers import (
Annatar,
Comet,
Jackett,
Knightcrawler,
Mediafusion,
Orionoid,
Scraping,
TorBoxScraper,
Torrentio,
Zilean,
)
from program.services.scrapers.torbox import TorBoxScraper
from program.services.updaters import Updater
from program.symlink import Symlinker

# Typehint classes
Scraper = Union[Scraping, Torrentio, Knightcrawler, Mediafusion, Orionoid, Jackett, Annatar, TorBoxScraper, Zilean]
Scraper = Union[Scraping, Torrentio, Knightcrawler, Mediafusion, Orionoid, Jackett, TorBoxScraper, Zilean, Comet]
Content = Union[Overseerr, PlexWatchlist, Listrr, Mdblist, TraktContent]
Downloader = Union[RealDebridDownloader,
# TorBoxDownloader,
Expand Down
Loading