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
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
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
b549271d1a
Fixes #21 . Handle invalid SoundCloud urls
2014-03-24 17:25:33 +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
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
0331a0e030
Handling timeout in template tags
2014-02-22 10:17:58 +01:00
Juda Kaleta
0850b2385c
EMBED_VIDEO_TIMEOUT
2014-02-21 23:31:41 +01:00
Juda Kaleta
1eecbf358d
Code style improvements
2013-12-23 09:50:03 +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
Juda Kaleta
b8bbd985ee
Detecting Vimeo without specified protocol
2013-12-01 12:15:23 +01:00
duy
3b24c96361
fixes #11
2013-11-30 23:17:01 +01:00
Juda Kaleta
070a05a02e
Closes #10 .
2013-10-23 23:01:10 +02:00
Juda Kaleta
6cca79c281
Fix Vimeo thumbnails
2013-10-04 10:53:16 +02:00
Juda Kaleta
70abaa7143
Fix line width
2013-10-04 10:19:30 +02:00
Alisson Patricio
a4684c62db
Prevent API calls on when backend intance is created
2013-09-26 19:46:59 -03:00
Alisson Patricio
a2538a034e
Remove unused imports
2013-09-26 19:07:24 -03:00
Alisson Patricio
fdfce70fbf
Add hability to overwrite embed code on the backend
2013-09-26 19:01:18 -03:00
Juda Kaleta
a31f4b976b
Closes #7 .
...
Return back raising UnknownIdException in Youtube backend to fix form validation.
2013-09-03 13:47:39 +02:00
Juda Kaleta
815e7e9698
Caching results
2013-08-23 14:16:01 +02:00
Juda Kaleta
0893916708
Tests
2013-08-23 13:37:44 +02:00
Juda Kaleta
088f3caf4e
Vimeo thumbnails
2013-08-23 13:26:34 +02:00
Juda Kaleta
acd0dbf9c8
VideoBackend.is_valid replaced direct using of re_detect
2013-08-22 16:55:18 +02:00
Juda Kaleta
9c1149fe22
Move import by path to utils
2013-08-22 16:19:07 +02:00
Juda Kaleta
8e6ec1838f
Dynamic loading backends from settings
2013-08-22 15:44:27 +02:00
Juda Kaleta
cc2fbdea77
Merge pull request #6 from techdragon/master
...
Improvements to URL's and Tests
2013-08-22 05:47:49 -07:00
Juda Kaleta
40594146d1
Support of Py3 without py2to3
2013-08-22 14:29:08 +02:00
techdragon
abc8df0ea0
trimming the regex comment out since its superfluous and breaks PEP8
2013-08-22 20:05:39 +08:00
techdragon
5b415c8ce4
Merge commit 'ef614d8bf038c4518b6869993e24981b81e67c36'
2013-08-22 18:58:02 +08:00
Juda Kaleta
6f2314844f
Sphinx doc
2013-08-22 10:34:29 +02:00
Juda Kaleta
ef31b4491f
Rename embed_video.base to embed_video.backends
2013-08-22 09:26:43 +02:00