summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-18 19:52:15 -0500
committerluxagraf <sng@luxagraf.net>2016-02-18 19:52:15 -0500
commit9f3dae0d59f29266b23d8f65bdaf3aef4a0c2e1d (patch)
tree5c2279c319e9ae305815475c450a7e3d8c92c7c2 /app
parentd48becb449eb808f6d027ba02bc895e362cb9164 (diff)
fixed amp parser
Diffstat (limited to 'app')
-rw-r--r--app/lib/templatetags/templatetags/amp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py
index f10727f..2eacfd1 100644
--- a/app/lib/templatetags/templatetags/amp.py
+++ b/app/lib/templatetags/templatetags/amp.py
@@ -19,7 +19,8 @@ register = template.Library()
def remove_img_tags(text):
- soup = BeautifulSoup(text, 'xml')
+ soup = BeautifulSoup(text, 'html')
+ print(soup)
for img in soup.find_all('img'):
r = requests.get(img['src'])
i = Image.open(BytesIO(r.content))