From 80590e1e1788cfd70aa37136855cd48a85c16f78 Mon Sep 17 00:00:00 2001 From: Spoked Date: Wed, 7 Feb 2024 17:22:42 -0500 Subject: [PATCH] revert: move plex back to init after Content --- backend/program/__init__.py | 4 +--- backend/program/scrapers/torrentio.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/program/__init__.py b/backend/program/__init__.py index 4880663b..b6895f40 100644 --- a/backend/program/__init__.py +++ b/backend/program/__init__.py @@ -36,10 +36,8 @@ def start(self): if not self.startup_args.dev: self.pickly = Pickly(self.media_items, data_dir_path) self.pickly.start() - self.core_manager = ServiceManager(self.media_items, True, Plex, Content, Scraping, Debrid, Symlinker) + self.core_manager = ServiceManager(self.media_items, True, Content, Plex, Scraping, Debrid, Symlinker) if self.validate(): - if len(self.media_items) > 0: - logger.info("Your Plex Library has %s items.", len(self.media_items)) logger.info("Iceberg started!") else: logger.info("----------------------------------------------") diff --git a/backend/program/scrapers/torrentio.py b/backend/program/scrapers/torrentio.py index 586abb88..9888bec8 100644 --- a/backend/program/scrapers/torrentio.py +++ b/backend/program/scrapers/torrentio.py @@ -42,7 +42,7 @@ def validate(self) -> bool: def run(self, item): """Scrape the torrentio site for the given media items and update the object with scraped streams""" - if item is None or not self.initialized: + if item is None: return try: self._scrape_item(item)