Explorar o código

Double-check media type: must be video

Micrufun %!s(int64=2) %!d(string=hai) anos
pai
achega
3a67597549
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      files/tasks.py

+ 4 - 0
files/tasks.py

@@ -785,6 +785,10 @@ def video_with_voices(user_or_session, friendly_token=None, voicesUid=None):
     except BaseException:
         return False
 
+    # Only video is acceptable.
+    if media.media_type != "video":
+       return False
+
     voices = []
 
     for uid in voicesUid: