Commit graph

53 commits

Author SHA1 Message Date
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
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
3c37fe16a0 Allow x surrounded by spaces 2014-03-07 22:27:40 +01:00
Juda Kaleta
92f285cfc9 Add tests for relative size 2014-03-07 22:23:09 +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
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
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
6e2750761f VideoNode.get_backend with is_secure 2013-12-18 09:40:19 +01:00
Juda Kaleta
d8964d6633 Fix testing urls for SoundCloud 2013-12-18 09:09:39 +01:00
Juda Kaleta
b998b5e624 Fix tests. Closes #14, #13. 2013-12-01 12:16:27 +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
89ce012f36 Add tests for SoundCloud 2013-10-04 10:34:55 +02:00
Juda Kaleta
f08b4eef55 Simplify backend tests with mixin 2013-10-04 10:19:30 +02:00
Juda Kaleta
be7a53296b Split backends tests into multiple test cases 2013-10-04 10:19:30 +02:00
Juda Kaleta
ba923eba43 Admin mixin and widget 2013-10-04 10:19:21 +02:00
Alisson Patricio
a3e47765dc Merge branch 'master' of github.com:yetty/django-embed-video into remove-api-calls-on-init 2013-09-26 19:49:58 -03:00
Alisson Patricio
a4684c62db Prevent API calls on when backend intance is created 2013-09-26 19:46:59 -03:00
Juda Kaleta
e74cc96374 Fix tests after pull #8 2013-09-27 00:32:23 +02: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
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
2a4fe971b5 Tests for CustomBackend 2013-08-22 16:55:49 +02:00
Juda Kaleta
5efb213a9e Add tests for utils.import_by_path 2013-08-22 16:09:14 +02:00
techdragon
085b65024a fixed a test thats failing due to inappropriate inputs.
- 13456 is an invalid video ID, its too short.
2013-08-22 20:20:57 +08:00
techdragon
2ddc2a0e04 fixed missing commas 2013-08-22 20:19:27 +08:00
techdragon
3f66fc3ef8 Added more test cases to the URLs for both youtube and vimeo 2013-08-22 20:07:19 +08:00
Juda Kaleta
6df2442914 Ready for Python 3 2013-08-22 12:03:42 +02:00
Juda Kaleta
ef31b4491f Rename embed_video.base to embed_video.backends 2013-08-22 09:26:43 +02:00
Juda Kaleta
08641afae9 Closes #5.
Add {{ my_video.backend }} containing YoutubeBackend, VimeoBackend or SoundCloudBackend values.

- Fix: SoundClound --> SoundCloud
- added tests for template tags
2013-08-20 10:49:33 +02:00
Juda Kaleta
d0d357b767 Security fix: faked urls
Backend detection hasn't been resistant against faked urls like:

http://youtube.com.myurl.com/watch?v=abcde
http://vimeo.com.myurl.com/watch?v=abcde

It is fixed and added few tests to cover it.
2013-08-12 12:11:42 +02:00
Juda Kaleta
231e3780ad Tests for templatetags 2013-07-31 10:35:07 +02:00
Juda Kaleta
5b85126f94 Remove redundant lines 2013-07-31 10:12:56 +02:00
Juda Kaleta
26bd78b9a9 Tests for embed_video.fields 2013-07-31 10:02:45 +02:00
Juda Kaleta
5f16a060f0 Split tests in multiple files 2013-07-31 08:41:16 +02:00
Juda Kaleta
7a2b67efaf Add test for issue #1 2013-06-27 10:13:55 +02:00
Juda Kaleta
99ff8e472f Simplified way to embed videos 2013-06-27 10:10:27 +02:00
Juda Kaleta
1a244eb75c Move to new version 2013-06-25 11:12:50 +02:00
Juda Kaleta
2ec28d6770 support for soundcloud
Little refactoring, apply PEP8 rules, some tests
2013-06-25 10:51:44 +02:00