Commit fda4cb06 authored by Seb's avatar Seb
Browse files

try and find out why da failure

parent 79a7a588
......@@ -115,7 +115,7 @@ class AbstractVideo(CollectionMember, TagSearchable):
file_path = self.file.path
try:
show_format = subprocess.check_output(['ffprobe', '-i', file_path, '-show_format', '-v', 'quiet'])
show_format = subprocess.check_output(['ffprobe', '-i', file_path, '-show_format'])
show_format = show_format.decode("utf-8")
# show_format comes out in key=value pairs seperated by newlines
duration = re.findall(r'([duration^=]+)=([^=]+)(?:\n|$)', show_format)[0][1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment