From 60f800a5922af0b4bcc8dcee1fde829059910fd3 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 19 Nov 2016 19:41:13 -0500 Subject: fixed bug in video parser --- app/utils/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/utils/widgets.py') diff --git a/app/utils/widgets.py b/app/utils/widgets.py index 3c97b12..3309978 100644 --- a/app/utils/widgets.py +++ b/app/utils/widgets.py @@ -163,7 +163,7 @@ def parse_image(s): def parse_video(s): soup = BeautifulSoup(s.group(), "lxml") - for vid in soup.find_all('video'): + if soup.find('video'): return True return False -- cgit v1.2.3-70-g09d2