Skip to content

Commit

Permalink
Release 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yetty committed Aug 20, 2013
1 parent 654d7c9 commit df06ff8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
26 changes: 26 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
Changes
*******

0.3
------

- Security fix: faked urls are treated as invalid. See `this page
<https://github.com/yetty/django-embed-video/commit/d0d357b767e324a7cc21b5035357fdfbc7c8ce8e>`_
for more details.

- Fixes:

- allow of empty video field.

- requirements in setup.py

- Added simplier way to embed video in one-line template tag::

{{ 'http://www.youtube.com/watch?v=guXyvo2FfLs'|embed:'large' }}

- ``backend`` variable in ``video`` template tag.

Usage::
{% video item.video as my_video %}
Backend: {{ my_video.backend }}
{% endvideo %}


0.2
-----

Expand Down
5 changes: 4 additions & 1 deletion embed_video/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def get_code(self):

if not code:
parse_data = urlparse.urlparse(self._url)
code = urlparse.parse_qs(parse_data.query)['v'][0]
try:
code = urlparse.parse_qs(parse_data.query)['v'][0]
except KeyError:
raise UnknownIdException

return code

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def read(fname):
setup(
name='django-embed-video',
packages=find_packages(),
version='0.2.0',
version='0.3',
author='Juda Kaleta',
author_email='[email protected]',
url='https://github.com/yetty/django-embed-video',
Expand Down

0 comments on commit df06ff8

Please sign in to comment.