prepareDailyMotionUrl = (url) => {
  url = url.replace(/^http(s)?:\/\/dai\.ly\//, 'http://www.dailymotion.com/video/');

  const parsedUrl = parseUrl(url, true);
  if (!parsedUrl.host.includes('dailymotion.com') || !parsedUrl.pathname.includes('/video')) {
    return url;
  }

  const videoHash = parsedUrl.pathname.replace(/\/video\//g, '');
  if (!videoHash) {
    return;
  }

  return `http://www.dailymotion.com/embed/video/${videoHash}`;
}
Prepares dailymotion URL for embed functionality
@param url
@return {*}