diff options
author | luxagraf <sng@luxagraf.net> | 2016-11-14 17:53:43 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-11-14 17:53:43 -0500 |
commit | b460162a8c744486857dae48c6afc1632c7115ba (patch) | |
tree | 82ce5a1ccf1a80fe8038e8daebba5407a4547b8e /app/utils | |
parent | 0bf00ae0c85821d5ffeb75bc8dd982d1b423d2aa (diff) |
pushed up new image insert script
Diffstat (limited to 'app/utils')
-rw-r--r-- | app/utils/widgets.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 + |