on replacedelete add specialcase for mashup videos
authorymh <ymh.work@gmail.com>
Fri, 21 Apr 2017 18:24:58 +0200
changeset 340 8a73fa27b2e2
parent 339 ebc6d7554749
child 341 6429b9a65264
on replacedelete add specialcase for mashup videos
src/ldtplatform/management/commands/replacedelete.py
--- a/src/ldtplatform/management/commands/replacedelete.py	Thu Apr 20 14:57:34 2017 +0200
+++ b/src/ldtplatform/management/commands/replacedelete.py	Fri Apr 21 18:24:58 2017 +0200
@@ -27,7 +27,9 @@
         tomp4 = 0
     if tomp4 == 1:
         source = source[0:len(source)-3]+"mp4"
-    if source[0:5] == "https":
+    if source.startswith("http://ftv.iri-research.org/"):
+        return "https://media.iri.centrepompidou.fr/"+source[len("http://ftv.iri-research.org/"):]
+    elif source[0:5] == "https":
         return source
     elif source[0:4] == "http" or source[0:4] == "sftp":
         return "https"+source[4:len(source)]