@ormoshe/js-video-url-parser 0.5.19 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jsVideoUrlParser.js
CHANGED
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
YouTube.prototype.parseVideoUrl = function (url) {
|
|
940
|
-
var match = url.match(/(?:(?:v|vi|be|videos|shorts|embed)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i);
|
|
940
|
+
var match = url.match(/(?:(?:v|vi|be|videos|shorts|embed|live)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i);
|
|
941
941
|
return match ? match[1] : undefined;
|
|
942
942
|
};
|
|
943
943
|
|
|
@@ -1712,7 +1712,7 @@
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
Canva.prototype.parse = function(url, params) {
|
|
1715
|
-
var match = url.match(/\/design\/(
|
|
1715
|
+
var match = url.match(/\/design\/(.+)\/watch/);
|
|
1716
1716
|
var result = {
|
|
1717
1717
|
mediaType: this.mediaTypes.VIDEO,
|
|
1718
1718
|
params: params,
|
package/lib/provider/canva.js
CHANGED
|
@@ -14,7 +14,7 @@ function Canva() {
|
|
|
14
14
|
module.exports = Canva;
|
|
15
15
|
|
|
16
16
|
Canva.prototype.parse = function(url, params) {
|
|
17
|
-
var match = url.match(/\/design\/(
|
|
17
|
+
var match = url.match(/\/design\/(.+)\/watch/);
|
|
18
18
|
var result = {
|
|
19
19
|
mediaType: this.mediaTypes.VIDEO,
|
|
20
20
|
params: params,
|
package/lib/provider/youtube.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = YouTube;
|
|
|
38
38
|
|
|
39
39
|
YouTube.prototype.parseVideoUrl = function(url) {
|
|
40
40
|
var match = url.match(
|
|
41
|
-
/(?:(?:v|vi|be|videos|shorts|embed)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i
|
|
41
|
+
/(?:(?:v|vi|be|videos|shorts|embed|live)\/(?!videoseries)|(?:v|ci)=)([\w-]{11})/i
|
|
42
42
|
);
|
|
43
43
|
return match ? match[1] : undefined;
|
|
44
44
|
};
|
package/package.json
CHANGED