From 5d6e753b055f7ff05f9f2045dd4583fd38952c6c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 17 Oct 2020 09:47:07 +0200 Subject: [PATCH] DEA.L. and DEAIL. work for aac --- pandora/archive/extract.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index dcb9bdcf..70f8e254 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -2,13 +2,13 @@ import os from os.path import exists - import fractions +import math +import re +import shutil import subprocess import tempfile import time -import math -import shutil from distutils.spawn import find_executable from glob import glob @@ -63,8 +63,8 @@ def supported_formats(): 'webm': 'libvpx' in stdout and 'libvorbis' in stdout, 'vp8': 'libvpx' in stdout and 'libvorbis' in stdout, 'vp9': 'libvpx-vp9' in stdout and 'libopus' in stdout, - 'mp4': 'libx264' in stdout and 'DEA.L. aac' in stdout, - 'h264': 'libx264' in stdout and 'DEA.L. aac' in stdout, + 'mp4': 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout)), + 'h264': 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout)), } def stream(video, target, profile, info, audio_track=0, flags={}):