At line 141 the _video_embed_dailymotion_get_video_id() function (file video_embed_dailymotion.module) cannot properly parse the id of e.g. below dailymotion video url

https://www.dailymotion.com/video/x5tn1fm

It's better to replace the code of the aforementioned function with something like this (https://stackoverflow.com/a/32831355) :

    if (preg_match('!^.+dailymotion\.com/(video|hub)/([^_]+)[^#]*(#video=([^_&]+))?|(dai\.ly/([^_]+))!', $url, $m)) {
        if (isset($m[6])) {
            return $m[6];
        }
        if (isset($m[4])) {
            return $m[4];
        }
        return $m[2];
    }
    return false;

Comments

chrbak created an issue. See original summary.

EJAN511’s picture

Hello,
Thank you chrbak, my problem is solved with this code

avpaderno’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
mably’s picture

Status: Active » Closed (outdated)

Drupal 7 is EOL

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.