mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
fixup! Do not update media servers about media from inactive sources
This commit is contained in:
parent
fc058a82f7
commit
0549438543
@ -365,7 +365,7 @@ def media_post_delete(sender, instance, **kwargs):
|
|||||||
log.info(f'Deleting file for: {instance} path: {file}')
|
log.info(f'Deleting file for: {instance} path: {file}')
|
||||||
delete_file(file)
|
delete_file(file)
|
||||||
|
|
||||||
if not instance.source.is_active
|
if not instance.source.is_active:
|
||||||
return
|
return
|
||||||
# Schedule a task to update media servers
|
# Schedule a task to update media servers
|
||||||
for mediaserver in MediaServer.objects.all():
|
for mediaserver in MediaServer.objects.all():
|
||||||
|
Loading…
Reference in New Issue
Block a user