Commit 622450e3 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

ffmpeg decode replace non utf8

parent 2cd36747
......@@ -42,7 +42,7 @@ def extract_duration (text):
def get_info(url, data=None):
popen = subprocess.Popen(["ffmpeg", "-i", url], stderr=subprocess.PIPE)
o = popen.communicate()[1].decode("utf-8")
o = popen.communicate()[1].decode("utf-8", errors="replace")
if data == None:
data = {}
dur = extract_duration(o)
......
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