mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Only log new media
Channels with thousands of videos, that won't be downloaded, create large blocks in the logs without this.
This commit is contained in:
parent
904c57f603
commit
2799d95119
@ -191,7 +191,10 @@ 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
|
||||
if media.created >= source.last_crawl:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user