diff options
Diffstat (limited to 'app/utils/widgets.py')
-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 + |