It would be useful to allow more matching to enable editors to use short URLs or embed URLs in the field. e.g:

http://www.dailymotion.com/video/x1g5nn
http://dai.ly/x1g5nn
http://www.dailymotion.com/embed/video/x1g5nn

The user could have copied any of those three from DailyMotion but only the first one will be matched in the field.

Comments

chrishks created an issue. See original summary.

chrishks’s picture

StatusFileSize
new757 bytes
chrishks’s picture

Status: Active » Needs review
sylvainm’s picture

Status: Needs review » Reviewed & tested by the community

It works good for me, thx :-)

anfor’s picture

Priority: Normal » Major

Thanks @chrishks, it works great.
You also fixed the 6 to 7 characters for video ID.
Moving the priority to major because the patch drastically simplify user's contribution.

flocondetoile’s picture

Category: Feature request » Bug report
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new752 bytes

Regex in #2 doesn't work for dailymotion url with an id greater than 7 characters
exemple: https://www.dailymotion.com/video/k4yq22IxAu6vqBrKyXc

Updated the regex to match too this URL types.

Moving to bug report because some Dailymotion URL can't be used.

flocondetoile’s picture

StatusFileSize
new757 bytes

Sorry ignore #6.
Good patch attached.

flocondetoile’s picture

StatusFileSize
new759 bytes

patch rerolled against -dev

  • flocondetoile authored 9e8172a on 8.x-1.x
    Issue #2900403 by flocondetoile, chrishks: Allow short URLs and embed...
flocondetoile’s picture

Status: Needs review » Fixed

#8 committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.