wipe the cache the correct video url in wpd

pull/173/head
Aevann 2023-07-28 02:04:58 +03:00
parent 7000e1b07e
commit 088dd3b726
1 changed files with 6 additions and 1 deletions

View File

@ -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)