This commit is contained in:
meeb 2020-12-13 19:34:43 +11:00
parent 23b3e7011c
commit 35096f67e2
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def rescan_media_server(mediaserver_id):
Attempts to request a media rescan on a remote media server.
'''
try:
mediaserver = MediaServer.objects.get(pk=media_id)
mediaserver = MediaServer.objects.get(pk=mediaserver_id)
except MediaServer.DoesNotExist:
# Task triggered but the media server no longer exists, do nothing
return