Skip to content

Commit c5f066f

Browse files
committed
MAGETWO-44253: Added fix to read new link format
1 parent 18f942f commit c5f066f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ require([
569569
type = 'youtube';
570570
} else if (href.host.match(/vimeo\.com/)) {
571571
type = 'vimeo';
572-
vimeoRegex = new RegExp(['https?:\\/\\/(?:www\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)',
573-
'?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|)(\\d+)(?:$|\\/|\\?)'
572+
vimeoRegex = new RegExp(['https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)',
573+
'?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)'
574574
].join(''));
575575
id = href.href.match(vimeoRegex)[3];
576576
}

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ define([
6868
type = 'youtube';
6969
} else if (href.host.match(/vimeo\.com/)) {
7070
type = 'vimeo';
71-
vimeoRegex = new RegExp(['https?:\\/\\/(?:www\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)',
72-
'?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|)(\\d+)(?:$|\\/|\\?)'
71+
vimeoRegex = new RegExp(['https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)',
72+
'?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)'
7373
].join(''));
7474
id = href.href.match(vimeoRegex)[3];
7575
}
@@ -327,7 +327,7 @@ define([
327327
scriptTag = document.getElementsByTagName('script')[0];
328328

329329
element.async = true;
330-
element.src = 'https://f.vimeocdn.com/js/froogaloop2.min.js';
330+
element.src = 'https://secure-a.vimeocdn.com/js/froogaloop2.min.js';
331331
scriptTag.parentNode.insertBefore(element, scriptTag);
332332
},
333333

0 commit comments

Comments
 (0)