From b460162a8c744486857dae48c6afc1632c7115ba Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 14 Nov 2016 17:53:43 -0500 Subject: pushed up new image insert script --- app/utils/widgets.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/utils') diff --git a/app/utils/widgets.py b/app/utils/widgets.py index d588b08..4f96e38 100644 --- a/app/utils/widgets.py +++ b/app/utils/widgets.py @@ -162,3 +162,9 @@ def parse_image(s): return render_to_string("lib/img_%s.html" % css_class, c) +def parse_video(s): + soup = BeautifulSoup(s.group(), "lxml") + for vid in soup.find_all('video'): + return True + return False + -- cgit v1.2.3