coleifer / micawber

a small library for extracting rich content from urls
http://micawber.readthedocs.org/
MIT License
632 stars 91 forks source link

Django filters doesn't work as expected if 'width' (only) parameter specified #12

Closed albv closed 11 years ago

albv commented 11 years ago

For example: {{ object.body|oembed:"600" }}

I think there is a problem in _fix_widthheight function. If only width size passed it sets maxwidth to first digit only: ... params['maxwidth'] = int(width_height[0]) ...

coleifer commented 11 years ago

Yikes, thanks for reporting.

Fixed 466656aa07958a3692306bed5a4c11fe38f88106