Fix Dailymotion start time.

This commit is contained in:
ccd0 2016-02-13 12:54:31 -08:00
parent fa2a55a3a1
commit 77a32e3371

View File

@ -175,7 +175,7 @@ Embedding =
src: a.dataset.href
,
key: 'Dailymotion'
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+).*((?:\?.*)?)/
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+)[^?]*(.*)/
el: (a) ->
options = if (start = a.dataset.options.match /[?&](start=\d+)/) then "?#{start[1]}" else ''
$.el 'iframe',