Juda Kaleta
a451e148ec
Improve regex for YouTube mobile urls + cover with tests
2014-05-31 10:52:08 +02:00
Andrea de Marco
90ba3b0b53
for mobile urls
2014-05-31 10:00:42 +02:00
Juda Kaleta
8b1d2eb3e5
Running on 0.11.dev
2014-05-24 09:33:14 +02:00
Juda Kaleta
bdb09043be
Release 0.10
2014-05-24 09:32:05 +02:00
Juda Kaleta
73c4628366
Merge pull request #23 from szuliq/patch-1
...
Fix string formating
2014-05-24 09:23:59 +02:00
Juda Kaleta
e3f01b0c78
Fix formatting string
2014-05-07 23:10:26 +02:00
Juda Kaleta
2b7308e8ea
Clean up imports, codestyle
2014-05-07 22:53:46 +02:00
Juda Kaleta
db11b8c866
Fix sorting query dictionary.
...
In dict update method, results are ordered differently
in Python version 2 and version 3. Using SortedDict
to have the same behaviour.
2014-05-07 22:51:43 +02:00
Juda Kaleta
43a6f22b7a
Fixes #24 .
2014-05-07 22:29:19 +02:00
Krzysztof Szularz
a238306391
Fix string formating
...
There is a lot of spaces in this error message.
By the way: this is never raised in normal condition. The `detect_backend` doesn't try to `get_code()` at all.
2014-05-06 17:58:23 +02:00
Brad Buran
5ebea38220
Updated video template tag to accept kwargs
...
Some video backends support optional arguments embedded in the URL query
string that adjust how the video is displayed (e.g. Youtube supports
rel=0 which means don't show related videos). Updated the template tag
to accept optional KEY=VALUE pairs that will be added onto the embedded
URL as a query string. Also added support for specifying default query
strings on a per-backend basis (e.g. so that all YouTube urls have
?rel=0 added to the end).
Added appropriate tests and documentation.
2014-05-01 07:17:53 -04:00
Juda Kaleta
42e11aaba3
Running on 0.10.dev
2014-04-04 20:29:50 +02:00
Juda Kaleta
7794d6222b
Release 0.9
2014-04-04 20:27:07 +02:00
Juda Kaleta
820541cc15
Catch VideoDoesntExistException in admin widget
2014-04-04 20:10:32 +02:00
Juda Kaleta
73341e909c
Fix VimeoBackendTestCase.test_get_thumbnail_url
2014-04-04 19:51:48 +02:00
Juda Kaleta
25f88793e2
Add tests for embed_video.fields
2014-03-24 19:43:42 +01:00
Juda Kaleta
b549271d1a
Fixes #21 . Handle invalid SoundCloud urls
2014-03-24 17:25:33 +01:00
Juda Kaleta
c22c82a86a
Docs for get_backend method
2014-03-19 22:50:00 +01:00
Juda Kaleta
a1f5a392d5
Simplify validate method in FormField.
2014-03-19 22:42:06 +01:00
Juda Kaleta
d69edcb23e
Simplify render method in AdminVideoWidget
2014-03-19 22:39:19 +01:00
Juda Kaleta
783dc5c2a2
Improve docs
2014-03-13 09:39:53 +01:00
Juda Kaleta
9d3b9db37b
Add parental class for all Exceptions
2014-03-13 09:18:00 +01:00
Juda Kaleta
1251b75061
Fix tests.
2014-03-07 22:35:08 +01:00
Juda Kaleta
847be2d6d9
Merge branch 'relative-size'
...
Conflicts:
embed_video/backends.py
2014-03-07 22:30:01 +01:00
Juda Kaleta
86e2725bdb
Add example of relative size
2014-03-07 22:28:54 +01:00
Juda Kaleta
3c37fe16a0
Allow x surrounded by spaces
2014-03-07 22:27:40 +01:00
Juda Kaleta
2f59d8b05e
Simplify regex for relative size
2014-03-07 22:24:23 +01:00
Juda Kaleta
92f285cfc9
Add tests for relative size
2014-03-07 22:23:09 +01:00
Calzzetta
cebffa60da
Change the regex to allow only numbers
2014-03-07 22:17:02 +01:00
Calzzetta
765d1b2904
Update embed_video_tags.py
...
Now is possible set relative sizes in template tag. Ex: '100%x500' or '500x100%' or '100%x100%'
2014-03-07 22:17:02 +01:00
Juda Kaleta
aa83b9e125
Codestyle in imports
2014-02-27 09:48:47 +01:00
Juda Kaleta
80ebc9f330
Add info about `template_name` to docs.
2014-02-27 09:47:22 +01:00
Juda Kaleta
c462362356
Move embed code to template
2014-02-27 09:29:54 +01:00
Juda Kaleta
f09df0e752
Add test for SoundCloudBackend.get_url
2014-02-24 22:30:38 +01:00
Juda Kaleta
49839aac1c
Add test for VideoBackend.get_info
2014-02-24 22:23:49 +01:00
Juda Kaleta
e574f4cf2d
Simplify code
2014-02-24 22:08:49 +01:00
Juda Kaleta
0af959ea02
Fix spelling mistake
2014-02-22 11:27:18 +01:00
Juda Kaleta
aa5dce0329
Running on 0.9.dev
2014-02-22 10:34:53 +01:00
Juda Kaleta
b6e47c1d3b
Release 0.8
2014-02-22 10:31:37 +01:00
Juda Kaleta
230f486a89
Minor codestyle improvements
2014-02-22 10:22:58 +01:00
Juda Kaleta
3c88819aa8
Fix template tag without specified size
2014-02-22 10:18:04 +01:00
Juda Kaleta
0331a0e030
Handling timeout in template tags
2014-02-22 10:17:58 +01:00
Juda Kaleta
84b2df8d4e
Closes #18 .
2014-02-22 09:42:15 +01:00
Juda Kaleta
0850b2385c
EMBED_VIDEO_TIMEOUT
2014-02-21 23:31:41 +01:00
Juda Kaleta
078e5662a7
Test case for #17 .
2014-02-21 20:55:16 +01:00
Juda Kaleta
1eecbf358d
Code style improvements
2013-12-23 09:50:03 +01:00
Juda Kaleta
d44dcada58
Running on 0.8.dev
2013-12-21 17:36:39 +01:00
Juda Kaleta
9045b09027
Release 0.7
2013-12-21 17:35:56 +01:00
Juda Kaleta
1081c478a6
Replace iterkeys with keys
2013-12-21 17:24:10 +01:00
Juda Kaleta
07de8a3af8
Closes #11 .
...
Major changes:
- filter ``embed`` is replaced by tag ``video``.
- removed caching for whole backend, caching properties instead.
- HTTP or HTTPS is set by context.is_secure() (just for ``video`` tag).
- backends can be HTTP only (``allow_https = False``).
Minor changes:
- changed theme of docs to RTD theme.
- help about testing HTTPS on development server.
- added and modified tests
2013-12-21 17:18:47 +01:00