fossasia/loklak_webclient

View on GitHub
iframely/lib/plugins/system/oembed/providers.json

Summary

Maintainability
Test Coverage
[
    {
        "name": "Facebook Post",
        "templates": [
          "(?:www|m|business)\\.facebook\\.com/(permalink|story)\\.php\\?[^/]+(\\d{10,})",
          "(?:www|m|business)\\.facebook\\.com/([a-zA-Z0-9\\.\\-]+)/(posts|activity)/(\\d{10,})",
          "(?:www|m|business)\\.facebook\\.com/([a-zA-Z0-9\\.\\-]+)/photos/[a-zA-Z0-9\\.\\-]+/(\\d{10,})",
          "(?:www|m|business)\\.facebook\\.com/notes/([a-zA-Z0-9\\.\\-]+)/[^/]+/(\\d{10,})",
          "(?:www|m|business)\\.facebook\\.com/media/set/\\?set=[^/]+(\\d{10,})"            
        ],
        "endpoint": "https://www.facebook.com/plugins/post/oembed.json/"
    },
    {
        "name": "Facebook Video",
        "templates": [
          "(?:www|m|business)\\.facebook\\.com/photo\\.php\\?[^/]+(\\d{10,})",
          "(?:www|business)\\.facebook\\.com/video/video\\.php.*[\\?&]v=(\\d{5,})(?:$|&)",          
          "(?:www|business)\\.facebook\\.com/video/video\\.php\\?v=(\\d{5,})",
          "(?:www|business)\\.facebook\\.com/video\\.php.*[\\?&]v=(\\d{5,})(?:$|&)",
          "(?:www|business)\\.facebook\\.com/video\\.php.*[\\?&]id=(\\d{5,})(?:$|&)",
          "(?:www|business)\\.facebook\\.com/[a-zA-Z0-9.]+/videos/.+"
        ],
        "endpoint": "https://www.facebook.com/plugins/video/oembed.json/"
    },
    {
        "name": "Facebook Page",
        "templates": [
            "(www|m)\\.facebook\\.com/([a-zA-Z0-9\\.\\-]+)/?(?:\\?f?ref=\\w+)?$"
        ],
        "endpoint": "https://www.facebook.com/plugins/page/oembed.json/"
    },
    {
        "name": "Blip",
        "templates": [
            "blip\\.tv/.*"
        ],
        "endpoint": "http://blip.tv/oembed/"
    },
    {
        "name": "Flickr",
        "templates": [
            "(?:www\\.)?flickr\\.com/(photos/[@a-zA-Z0-9_\\.-]+/?(?:[?#].*)?$)",
            "(?:www\\.)?flickr\\.com/(photos/[@a-zA-Z0-9_\\.-]+/\\d+.*?$)",
            "(?:www\\.)?flickr\\.com/(photos/[@a-zA-Z0-9_\\.-]+/(?:sets|albums)/(?:\\d+))"
        ],
        "endpoint": "http://www.flickr.com/services/oembed/?format={format}&url=https://www.flickr.com/{1}"
    },
    {
        "name": "Hulu",
        "templates": [
            "(www\\.)?hulu\\.com/watch/.*"
        ],
        "endpoint": "http://www.hulu.com/api/oembed.{format}"
    },
    {
        "name": "Scribd",
        "templates": [
            "((?:www\\.)?scribd\\.com)/(?:doc|book|read)/(.*)"
        ],
        "endpoint": "http://www.scribd.com/services/oembed?format={format}&url=https://{1}/doc/{2}"
    },
    {
        "name": "Viddler",
        "templates": [
            ".*\\.viddler\\.com/v/.*"
        ],
        "endpoint": "http://www.viddler.com/oembed"
    },
    {
        "name": "Vimeo",
        "templates": [
            "(www\\.)?vimeo\\.com/.*"
        ],
        "endpoint": "http://vimeo.com/api/oembed.{format}"
    },
    {
        "name": "YouTube",
        "templates": [
            "(?:www\\.)?youtube\\.com/(?:tv#/)?watch\\?(?:[^&]+&)*v=([a-zA-Z0-9_-]+)",
            "youtu\\.be/([a-zA-Z0-9_-]+)",
            "m\\.youtube\\.com/#/watch\\?(?:[^&]+&)*v=([a-zA-Z0-9_-]+)",
            "www\\.youtube\\.com/embed/([a-zA-Z0-9_-]+)",
            "www\\.youtube\\.com/v/([a-zA-Z0-9_-]+)",
            "www\\.youtube\\.com/user/[a-zA-Z0-9_-]+\\?v=([a-zA-Z0-9_-]+)",
            "www\\.youtube-nocookie\\.com/v/([a-zA-Z0-9_-]+)"
        ],
        "endpoint": "http://www.youtube.com/oembed?format={format}&url=https://www.youtube.com/watch?v={1}"
    },
    {
        "name": "YouTube Playlist",
        "templates": [
            "www\\.youtube\\.com/playlist\\?list=([a-zA-Z0-9_-]+)"
        ],
        "endpoint": "http://www.youtube.com/oembed"
    },    
    {
        "name": "Qik",
        "templates": [
            "qik\\.com/video/.*",
            "qik\\.com/.*"
        ],
        "endpoint": "http://qik.com/api/oembed.{format}"
    },
    {
        "name": "Revision3",
        "templates": [
            "(.*\\.)?revision3\\.com/.*"
        ],
        "endpoint": "http://revision3.com/api/oembed/"
    },
    {
        "name": "CollegeHumor",
        "templates": [
            "www\\.collegehumor\\.com/video/.*"
        ],
        "endpoint": "http://www.collegehumor.com/oembed.{format}"
    },
    {
        "name": "Poll Everywhere",
        "templates": [
            "www\\.polleverywhere\\.com/polls/.*",
            "www\\.polleverywhere\\.com/multiple_choice_polls/.*",
            "www\\.polleverywhere\\.com/free_text_polls/.*"
        ],
        "endpoint": "http://www.polleverywhere.com/services/oembed/"
    },
    {
        "name": "My Opera",
        "templates": [
            "my\\.opera\\.com/.*"
        ],
        "endpoint": "http://my.opera.com/service/oembed"
    },
    {
        "name": "iFixit",
        "templates": [
            "www\\.ifixit\\.com/.+/.+/.*"
        ],
        "endpoint": "http://www.ifixit.com/Embed"
    },
    {
        "name": "SmugMug",
        "templates": [
            "(.*\\.smugmug\\.com/[^#]*)#!i=(\\d+)&k=(\\w+)"
        ],
        "endpoint": "http://api.smugmug.com/services/oembed/?format={format}&url=http://{1}%23{2}_{3}"
    },
    {
        "name": "SmugMug new",
        "templates": [
            ".*\\.smugmug\\.com/[^#]+$"
        ],
        "endpoint": "http://api.smugmug.com/services/oembed/?format={format}&url={url}"
    },
    {
        "name": "SlideShare",
        "templates": [
            "\\w+\\.slideshare\\.net/.+/.*"
        ],
        "endpoint": "http://www.slideshare.net/api/oembed/2"
    },
    {
        "name": "WordPress.com",
        "templates": [
            ".*\\.wordpress.com",
            "wp\\.me/.*"
        ],
        "endpoint": "http://public-api.wordpress.com/oembed/1.0/?format={format}&for=iframely&url={url}"
    },
    {
        "name": "Twitter Moments",
        "templates": [
            "twitter\\.com/i/moments/(\\d+)"
        ],
        "endpoint": "https://publish.twitter.com/oembed"
    },
    {
        "name": "Gist",
        "templates": [
            "gist\\.github\\.com/(.+)"
        ],
        "endpoint": "https://github.com/api/oembed"
    },
    {
        "name": "dotSUB",
        "templates": [
            "dotsub\\.com/view/.+"
        ],
        "endpoint": "http://dotsub.com/services/oembed"
    },
    {
        "name": "Instagr.am",
        "templates": [
            "([\\w\\.]*instagram\\.com/p/([a-zA-Z0-9_-]+))",
            "(instagr\\.am/p/([a-zA-Z0-9_-]+))"
        ],
        "endpoint": "https://api.instagram.com/oembed?format={format}&url=http://{1}"
    },
    {
        "name": "Instagr.am user page",
        "templates": [
            "([\\w\\.]*instagram\\.com/)[a-zA-Z0-9_-]+/(p/[a-zA-Z0-9_-]+)",
            "(instagr\\.am/)[a-zA-Z0-9_-]+/(p/[a-zA-Z0-9_-]+)"
        ],
        "endpoint": "https://api.instagram.com/oembed?format={format}&url=http://{1}{2}"
    },
    {
        "name": "DailyMotion",
        "templates": [
            "www\\.dailymotion\\.com/video/.+",
            "www\\.dailymotion\\.com/embed/video/.+"
        ],
        "endpoint": "http://www.dailymotion.com/services/oembed"
    },
    {
        "name": "SoundCloud",
        "templates": [
            "soundcloud\\.com/.+",
            "api\\.soundcloud\\.com\/tracks\\/\\d+"
        ],
        "endpoint": "http://soundcloud.com/oembed"
    },
    {
        "name": "Animoto",
        "templates": [
            "animoto\\.com/play/.+"
        ],
        "endpoint": "http://animoto.com/oembeds/create.{format}?automated=true&options=start_hq&url={url}"

    },
    {
        "name": "Dailymotion",
        "templates": [
            "dailymotion\\.com/video/.+"
        ],
        "endpoint": "http://www.dailymotion.com/services/oembed"
    },
    {
        "name": "Rdio",
        "templates": [
            "rdio\\.com/people/[^/]+/playlists/.+",
            "rdio\\.com/artist/[^/]+/album/.+"
        ],
        "endpoint": "http://www.rdio.com/api/oembed"
    },
    {
        "name": "500px",
        "templates": [
            "500px\\.com/photo/(\\d+)\\[a-zA-Z0-9_-]+"
        ],
        "endpoint": "https://500px.com/oembed"        
    },
    {
        "name": "Dipdive",
        "templates": [
            "\\w+\\.dipdive\\.com/media/.*"
        ],
        "endpoint": "http://api.dipdive.com/oembed.{format}"
    },
    {
        "name": "Speaker Deck",
        "templates": [
            "speakerdeck\\.com/.*"
        ],
        "endpoint": "https://speakerdeck.com/oembed.{format}"
    },
    {
        "name": "Yandex Video",
        "templates": [
            "video\\.yandex\\.ru/users/[^/]+/view/.+"
        ],
        "endpoint": "http://video.yandex.ru/oembed.{format}"
    },
    {
        "name": "qz.com",
        "templates": [
            "qz\\.com/\\d+/[a-zA-Z0-9_-]+/"
        ],
        "endpoint": "http://public-api.wordpress.com/oembed/1.0/?format={format}&for=iframely&url={url}"
    },
    {
        "name": "Techcrunch",
        "templates": [
            "techcrunch\\.com/[0-9]/[0-9]/[0-9]+/"
        ],
        "endpoint": "http://public-api.wordpress.com/oembed/1.0/?format={format}&for=iframely&url={url}"
    },    
    {
        "name": "Mixcloud",
        "templates": [
            "www\\.mixcloud\\.com/.+/.+/.*"
        ],
        "endpoint": "http://www.mixcloud.com/oembed/"
    },
    {
        "name": "Coub",
        "templates": [
            "coub\\.com/view/.*",
            "coub\\.com/embed/.*"
        ],
        "endpoint": "http://coub.com/api/oembed.{format}"
    },
    {
        "name": "Screenr",
        "templates": [
            "\\w+\\.screenr\\.com/[a-zA-Z0-9_-]+/"
        ],
        "endpoint": "http://www.screenr.com/api/oembed.{format}"
    },
    {
        "name": "Funny or Die",
        "templates": [
            "www.funnyordie.com/videos/.+"
        ],
        "endpoint": "http://www.funnyordie.com/oembed.{format}"
    },
    {
        "name": "Wistia",
        "templates": [
            ".*\\.wistia.com/medias/.*"
        ],
        "endpoint": "http://fast.wistia.com/oembed.{format}"
    },
    {
        "name": "crowdranking",
        "templates": [
            "crowdranking.com/crowdrankings/.+",
            "crowdranking.com/rankings/.+",
            "crowdranking.com/topics/.+",
            "crowdranking.com/widgets/.+",
            "crowdranking.com/r/.+"
        ],
        "endpoint": "http://crowdranking.com/api/oembed.{format}"
    },
    {
        "name": "IFTTT",
        "templates": [
            "ifttt\\.com/recipes/.+"
        ],
        "endpoint": "https://ifttt.com/oembed"
    },
    {
        "name": "Polldaddy",
        "templates": [
            "polldaddy\\.com/poll/.*"
        ],
        "endpoint": "http://polldaddy.com/oembed/"
    },
    {
        "name": "Meetup",
        "templates": [
            "www\\.meetup\\.com/.*"
        ],
        "endpoint": "http://api.meetup.com/oembed"
    },
    {
        "name": "Behance",
        "templates": [
            "www\\.behance\\.net/gallery/.*",
            "[^w]+\\.\\w+\\.\\w+/gallery/[\\w-]+/\\d+",
            "[^w]+\\.\\w+\\.\\w+/gallery/\\d+/[\\w-]+"
        ],
        "endpoint": "http://www.behance.net/services/oembed"
    },
    {
        "name": "Ted",
        "templates": [
            "ted\\.com/talks/.*"
        ],
        "endpoint": "http://www.ted.com/talks/oembed.{format}"
    },
    {
        "name": "Codepen",
        "templates": [
            "codepen\\.io/.*/pen/.*"
        ],
        "endpoint": "http://codepen.io/api/oembed"
    },
    {
        "name": "Spotify",
        "templates": [
            "((?:open|embed|play)\\.spotify\\.com/)(?:embed/)?([^\\?]*)\\??.*"
        ],
        "endpoint": "https://embed.spotify.com/oembed/?url=https://{1}{2}&format={format}"
    },
    {
        "name": "Issuu",
        "templates": [
            "issuu\\.com/.*"
        ],
        "endpoint": "http://issuu.com/oembed"
    },
    {
        "name": "Droplr",
        "templates": [
            "d.pr/i/.*",
            "\\w+\\.d\\.pr/.*"
        ],
        "endpoint": "http://d.pr/oembed"
    },
    {
        "name": "Vine",
        "templates": [
            "vine.co/v/([a-zA-Z0-9-]+)"
        ],
        "endpoint": "https://vine.co/oembed/{1}.{format}"
    },
    {
        "name": "Tumblr",
        "templates": [
            "[a-z0-9-]+\\.tumblr\\.com/(post|image)/\\d+"
        ],
        "endpoint": "https://www.tumblr.com/oembed/1.0"
    },
    {
        "name": "DeviantArt",
        "templates": [
            ".*\\.deviantart\\.com/art/.*"
        ],
        "endpoint": "http://backend.deviantart.com/oembed"
    },
    {
        "name": "roomshare.jp",
        "templates": [
            "roomshare\\.jp/post/\\d+"
        ],
        "endpoint": "http://roomshare.jp/oembed.xml?url=http://{0}"
    },
    {
        "name": "cartodb.com",
        "templates": [
            "\\w+.cartodb\\.com/(?:u\/[a-zA-Z0-9-]+/)?viz/[a-z0-9-]+"
        ],
        "endpoint": "http://services.cartodb.com/oembed"
    },
    {
        "name": "Widgetic",
        "templates": [
            "widgetic.com/widgets/.*"
        ],
        "endpoint": "https://widgetic.com/services/oembed/"
    },
    {
        "name": "Adobe Stock",
        "templates": [
            "stock.adobe.com/.*"
        ],
        "endpoint": "https://stock.adobe.com/oembed"
    },
    {
        "name": "Reddit comment",
        "templates": [
            "(?:www\\.|m\\.)?reddit\\.com/r/([^\/]+)/comments/([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)"
        ],
        "endpoint": "https://www.reddit.com/oembed"
    },
    {
        "name": "Interlude",
        "templates": [
            "interlude.fm/v/([a-zA-Z0-9-]+)"
        ],
        "endpoint": "https://v.interlude.fm/oembed?vid={1}"
    },
    {
        "name": "Academie de Bordeaux etc",
        "templates": [
            "([a-z0-9]+)\\.ac\\-(\\w+)\\.fr/mediacad/default/media/display(?:[\\/a-z0-9]+)?/(m/\\d+)",
            "([a-z0-9]+)\\.ac\\-(\\w+)\\.fr/mediacad/(m/\\d+)",
            "([a-z0-9]+)\\.ac\\-(\\w+)\\.fr/(m/\\d+)"            
        ],
        "endpoint": "http://{1}.ac-{2}.fr/mediacad/default/media/display/{3}/d/j?format={format}"
    },
    {
        "name": "RTL XL",
        "templates": [
            "rtlxl\\.nl/#!/[^\/]+/([a-zA-Z0-9-]+)"
        ],
        "endpoint": "http://xlapi.rtl.nl/version=1/fun=oembed?url={1}"
    },
    {
        "name": "Ranker",
        "templates": [
            "(?:www\\.)?ranker\\.com/widget/([0-9]+)"
        ],
        "endpoint": "https://widget.ranker.com/oembed/{1}?for={format}"
    }    
]