diff --git a/files/helpers/media.py b/files/helpers/media.py index 977c87ae4..dfc56566f 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -121,7 +121,12 @@ def convert_to_mp4(old, new): os.replace(tmp, new) os.remove(old) - purge_files_in_cache(f"{SITE_FULL}{new}") + if SITE == 'watchpeopledie.tv': + url = f'https://videos.{SITE}' + new.split('/videos')[1] + else: + url = f"{SITE_FULL}{new}" + + purge_files_in_cache(url)