summaryrefslogtreecommitdiff
path: root/app/utils/widgets.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-11-19 19:41:13 -0500
committerluxagraf <sng@luxagraf.net>2016-11-19 19:41:13 -0500
commit60f800a5922af0b4bcc8dcee1fde829059910fd3 (patch)
treedc93320550130cbdc89febdd08b4019418c74bc0 /app/utils/widgets.py
parent99a23d820bc0abd93aa55ab53f0c8f1a5598175f (diff)
fixed bug in video parser
Diffstat (limited to 'app/utils/widgets.py')
-rw-r--r--app/utils/widgets.py2
1 files changed, 1 insertions, 1 deletions
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