fix wpd videos

pull/138/head
Aevann 2023-03-06 01:58:58 +02:00
parent b9ab4cde71
commit 3ac75b2ac7
1 changed files with 3 additions and 0 deletions

View File

@ -251,6 +251,9 @@ class Submission(Base):
# Semi-temporary fix for self-hosted unproxied video serving
url = url.replace("https://watchpeopledie.tv/videos/",
"https://videos.watchpeopledie.tv/", 1)
elif SITE == 'watchpeopledie.tv' and url.startswith('/videos'):
url = url.replace("/videos/",
"https://videos.watchpeopledie.tv/", 1)
return url