diff options
| author | qsm-odoo <qsm@odoo.com> | 2021-01-26 17:06:31 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2021-01-26 18:10:28 +0000 |
| commit | 63e36a9254c20726b57160b0bd08bc3aa292a063 (patch) | |
| tree | 10186430c81878dcba353c28d8b7780fa3bf94fb /addons/website | |
| parent | 910ff4d8520c46fb95c59b2dff7be4ec508c4323 (diff) | |
[FIX] website: update python dailymotion regex
The regex was updated in JS with [1] but its python counterpart was
forgotten during forward-port.
[1]: https://github.com/odoo/odoo/pull/46898
closes odoo/odoo#65083
X-original-commit: 8d0b82683b95615267ff3acf84ebdd20456c595a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website')
| -rw-r--r-- | addons/website/tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/tools.py b/addons/website/tools.py index 44530e3ce52..fa1eee4f473 100644 --- a/addons/website/tools.py +++ b/addons/website/tools.py @@ -22,7 +22,7 @@ def get_video_embed_code(video_url): # Regex for few of the widely used video hosting services ytRegex = r'^(?:(?:https?:)?\/\/)?(?:www\.)?(?:youtu\.be\/|youtube(-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$' vimeoRegex = r'\/\/(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*' - dmRegex = r'.+dailymotion.com\/(video|hub|embed)\/([^_]+)[^#]*(#video=([^_&]+))?' + dmRegex = r'.+dailymotion.com\/(video|hub|embed)\/([^_?]+)[^#]*(#video=([^_&]+))?' igRegex = r'(.*)instagram.com\/p\/(.[a-zA-Z0-9]*)' ykuRegex = r'(.*).youku\.com\/(v_show\/id_|embed\/)(.+)' |
