add log messages for updating media servers

This commit is contained in:
meeb 2020-12-13 19:47:45 +11:00
parent 35096f67e2
commit 4863ccc7ba
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,7 @@ def download_media(media_id):
media.save()
# Schedule a task to update media servers
for mediaserver in MediaServer.objects.all():
log.info(f'Scheduling media server updates')
verbose_name = _('Request media server rescan for "{}"')
rescan_media_server(
str(mediaserver.pk),
@ -343,4 +344,5 @@ def rescan_media_server(mediaserver_id):
# Task triggered but the media server no longer exists, do nothing
return
# Request an rescan / update
log.info(f'Updating media server: {mediaserver}')
mediaserver.update()