Update Loopvid embedding.

This commit is contained in:
ccd0 2017-07-15 02:16:09 -07:00
parent 15e5d5a0a1
commit e9281514a7

View File

@ -307,7 +307,7 @@ Embedding =
el
,
key: 'Loopvid'
regExp: /^\w+:\/\/(?:www\.)?loopvid.appspot.com\/#?((?:pf|kd|lv|gd|gh|db|dx|nn|cp|wu|ig|ky|mf|m2|pc|1c|pi|wl|ko|gc)\/[\w\-\/]+(?:,[\w\-\/]+)*|fc\/\w+\/\d+|https?:\/\/.+)/
regExp: /^\w+:\/\/(?:www\.)?loopvid.appspot.com\/#?((?:pf|kd|lv|gd|gh|db|dx|nn|cp|wu|ig|ky|mf|m2|pc|1c|pi|ni|wl|ko|gc)\/[\w\-\/]+(?:,[\w\-\/]+)*|fc\/\w+\/\d+|https?:\/\/.+)/
style: 'max-width: 80vw; max-height: 80vh;'
el: (a) ->
el = $.el 'video',
@ -328,22 +328,23 @@ Embedding =
urls = switch host
# list from src/common.py at http://loopvid.appspot.com/source.html
when 'pf' then ["https://kastden.org/_loopvid_media/pf/#{base}", "https://web.archive.org/web/2/http://a.pomf.se/#{base}"]
when 'kd' then ["http://kastden.org/loopvid/#{base}"]
when 'lv' then ["http://lv.kastden.org/#{base}"]
when 'kd' then ["https://kastden.org/loopvid/#{base}"]
when 'lv' then ["https://lv.kastden.org/#{base}"]
when 'gd' then ["https://docs.google.com/uc?export=download&id=#{base}"]
when 'gh' then ["https://googledrive.com/host/#{base}"]
when 'db' then ["https://dl.dropboxusercontent.com/u/#{base}"]
when 'dx' then ["https://dl.dropboxusercontent.com/#{base}"]
when 'nn' then ["http://naenara.eu/loopvids/#{base}"]
when 'nn' then ["https://kastden.org/_loopvid_media/nn/#{base}"]
when 'cp' then ["https://copy.com/#{base}"]
when 'wu' then ["http://webmup.com/#{base}/vid.webm"]
when 'ig' then ["https://i.imgur.com/#{base}"]
when 'ky' then ["https://kiyo.me/#{base}"]
when 'ky' then ["https://kastden.org/_loopvid_media/ky/#{base}"]
when 'mf' then ["https://kastden.org/_loopvid_media/mf/#{base}", "https://web.archive.org/web/2/https://d.maxfile.ro/#{base}"]
when 'm2' then ["https://kastden.org/_loopvid_media/m2/#{base}"]
when 'pc' then ["http://a.pomf.cat/#{base}"]
when '1c' then ["http://b.1339.cf/#{base}"]
when 'pi' then ["https://u.pomf.is/#{base}"]
when 'ni' then ["https://u.nya.is/#{base}"]
when 'wl' then ["http://webm.land/media/#{base}"]
when 'ko' then ["https://kordy.kastden.org/loopvid/#{base}"]
when 'fc' then ["//#{ImageHost.host()}/#{base}.webm"]