Initial CLI tool

This commit is contained in:
Logan Williams
2022-03-29 21:10:46 +02:00
parent 1c1ff7fb6f
commit cff1953d21
2 changed files with 110 additions and 1 deletions

View File

@@ -336,6 +336,7 @@ class ScraperController:
for scraper in self.scrapers:
if scraper.can_handle(channel):
logger.debug(f"{scraper} is handling {channel}")
handled = True
added = 0
@@ -382,7 +383,7 @@ class ScraperController:
for scraper in self.scrapers:
if scraper.__version__ == post.scraper:
handled = True
logger.info(f"{scraper} is archiving media for {post}")
logger.debug(f"{scraper} is archiving media for ID {post.id}")
post = scraper.archive_files(post)
if post: