From 6a24c53ce0c2c8151347e25721b7062380d06865 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 3 Oct 2015 21:52:01 -0700 Subject: [PATCH] Update Loopvid embedding. --- src/Linkification/Embedding.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index c6f7f6fce..c5d738034 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -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