diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 71c535b6..409a144d 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -191,7 +191,15 @@ def index_source_task(source_id): media.source = source try: media.save() - log.info(f'Indexed media: {source} / {media}') + log.debug(f'Indexed media: {source} / {media}') + # log the new media instances + new_media_instance = ( + media.created and + source.last_crawl and + media.created >= source.last_crawl + ) + if new_media_instance: + log.info(f'Indexed new media: {source} / {media}') except IntegrityError as e: log.error(f'Index media failed: {source} / {media} with "{e}"') # Tack on a cleanup of old completed tasks