Skip to content

Commit

Permalink
feincms3 5.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Aug 27, 2024
1 parent dc6aedb commit 84d68e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Next version
- Changed the inline CKEditor implementation to also disable the CKEditor 4
version check (or version nag) when the editor configuration has been
customized.
- Added support for embedding content from the SRF (the Swiss television
broadcast company).


5.2 (2024-06-07)
Expand Down
2 changes: 1 addition & 1 deletion feincms3/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.1"
__version__ = "5.2.2"
5 changes: 4 additions & 1 deletion feincms3/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def embed_vimeo(url):


def embed_srf(url):
"""
Return HTML for embedding videos from SRF
"""
try:
match = next(filter(None, (r.search(url) for r in SRF_RE)))
except StopIteration:
Expand Down Expand Up @@ -109,7 +112,7 @@ def embed_srf(url):


def embed(url, *, handlers=_default_handlers):
"""embed(url, *, handlers=[embed_youtube, embed_vimeo])
"""embed(url, *, handlers=[embed_youtube, embed_vimeo, embed_srf])
Run a selection of embedding handlers and return the first value, or
``None`` if URL couldn't be processed by any handler.
Expand Down

0 comments on commit 84d68e8

Please sign in to comment.