diff --git a/src/misc.js b/src/misc.js index 6e5da48a..69f0f5cf 100644 --- a/src/misc.js +++ b/src/misc.js @@ -104,3 +104,8 @@ function encodeHTML(text) .replace(/"/g, '"') .replace(/'/g, '''); } + +function decodeURIPlus(uri) +{ + return decodeURI(uri.replace(/\+/g, ' ')); +} diff --git a/src/player.js b/src/player.js index 56c12acd..82f0f3ce 100644 --- a/src/player.js +++ b/src/player.js @@ -93,7 +93,7 @@ class ClapperPlayer extends PlayerBase throw new Error('no YouTube video URI'); this.customVideoTitle = (info.videoDetails && info.videoDetails.title) - ? info.videoDetails.title + ? Misc.decodeURIPlus(info.videoDetails.title) : videoId; return videoUri;