Update Loopvid embedding.
This commit is contained in:
parent
26fa2d521d
commit
6a24c53ce0
@ -318,7 +318,7 @@ Embedding =
|
||||
'Not Found'
|
||||
,
|
||||
key: 'Loopvid'
|
||||
regExp: /^\w+:\/\/(?:www\.)?loopvid.appspot.com\/#?((?:pf|kd|lv|gd|gh|db|dx|nn|cp|wu|ig|ky|gc)\/[\w\-\/]+(,[\w\-\/]+)*|fc\/\w+\/\d+)/
|
||||
regExp: /^\w+:\/\/(?:www\.)?loopvid.appspot.com\/#?((?:pf|kd|lv|gd|gh|db|dx|nn|cp|wu|ig|ky|mf|pc|gc)\/[\w\-\/]+(,[\w\-\/]+)*|fc\/\w+\/\d+)/
|
||||
style: 'max-width: 80vw; max-height: 80vh;'
|
||||
el: (a) ->
|
||||
el = $.el 'video',
|
||||
@ -335,9 +335,9 @@ Embedding =
|
||||
base = "#{name}#{type}"
|
||||
url = switch host
|
||||
# list from src/common.py at http://loopvid.appspot.com/source.html
|
||||
when 'pf' then "https://a.pomf.se/#{base}"
|
||||
when 'kd' then "http://2.kastden.org/loopvid/#{base}"
|
||||
when 'lv' then "http://loopvid.mooo.com/videos/#{base}"
|
||||
when 'pf' then "https://web.archive.org/web/2/http://a.pomf.se/#{base}"
|
||||
when 'kd' then "http://kastden.org/loopvid/#{base}"
|
||||
when 'lv' then "http://kastden.org/_loopvid_media/lv/#{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}"
|
||||
@ -347,6 +347,8 @@ Embedding =
|
||||
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 'mf' then "https://d.maxfile.ro/#{base}"
|
||||
when 'pc' then "http://a.pomf.cat/#{base}"
|
||||
when 'fc' then "//i.4cdn.org/#{base}.webm"
|
||||
when 'gc' then "https://#{type}.gfycat.com/#{name}.webm"
|
||||
$.add el, $.el 'source', src: url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user