Skip to content

Commit

Permalink
v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Zod- committed May 13, 2019
1 parent c5e4be5 commit d0d17f1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-video-url-parser",
"version": "0.3.2",
"version": "0.3.3",
"homepage": "https://github.com/Zod-/jsVideoUrlParser",
"main": "dist/jsVideoUrlParser.js",
"authors": [{
Expand Down
14 changes: 10 additions & 4 deletions dist/jsVideoUrlParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ function Dailymotion() {
this.formats = {
short: this.createShortUrl,
long: this.createLongUrl,
embed: this.createEmbedUrl
embed: this.createEmbedUrl,
image: this.createImageUrl
};
this.mediaTypes = {
VIDEO: 'video'
Expand Down Expand Up @@ -355,16 +356,21 @@ Dailymotion.prototype.createUrl = function (base$$2, vi, params) {
});
};

Dailymotion.prototype.createShortUrl = function (vi) {
return this.createUrl('https://dai.ly/', vi, {});
Dailymotion.prototype.createShortUrl = function (vi, params) {
return this.createUrl('https://dai.ly/', vi, params);
};

Dailymotion.prototype.createLongUrl = function (vi, params) {
return this.createUrl('https://dailymotion.com/video/', vi, params);
};

Dailymotion.prototype.createEmbedUrl = function (vi, params) {
return this.createUrl('//www.dailymotion.com/embed/video/', vi, params);
return this.createUrl('https://www.dailymotion.com/embed/video/', vi, params);
};

Dailymotion.prototype.createImageUrl = function (vi, params) {
delete params.start;
return this.createUrl('https://www.dailymotion.com/thumbnail/video/', vi, params);
};

base.bind(new Dailymotion());
Expand Down
2 changes: 1 addition & 1 deletion dist/jsVideoUrlParser.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-video-url-parser",
"version": "0.3.2",
"version": "0.3.3",
"description": "A parser to extract provider, video id, starttime and others from YouTube, Vimeo, ... urls",
"main": "lib/index.js",
"browser": "dist/jsVideoUrlParser.js",
Expand Down

0 comments on commit d0d17f1

Please sign in to comment.