public
Description: A quick way to transform all links inside a string w/ their oEmbed (http://oembed.com) information
Homepage:
Clone URL: git://github.com/netshade/oembed_links.git
oembed_links / oembed_links_example.yml
100644 46 lines (40 sloc) 1.249 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
:config:
  :method: "NetHTTP"
 
:providers:
  :oohembed: "http://oohembed.com/oohembed/"
  :vimeo: "http://www.vimeo.com/api/oembed.{format}"
  :hulu: "http://www.hulu.com/api/oembed.{format}"
  :flickr: "http://www.flickr.com/services/oembed"
  :viddler: "http://lab.viddler.com/services/oembed/"
 
:oohembed:
  :format: "json"
  :schemes:
    - "http://*.amazon.(com|co.uk|de|ca|jp)/*/(gp/product|o/ASIN|obidos/ASIN|dp)/*"
    - "http://*.amazon.(com|co.uk|de|ca|jp)/(gp/product|o/ASIN|obidos/ASIN|dp)/*"
    - "http://*.collegehumor.com/video:*"
    - "http://*.funnyordie.com/videos/*"
    - "http://video.google.com/videoplay?*"
    - "http://*.imdb.com/title/tt*/"
    - "http://*.metacafe.com/watch/*"
    - "http://*.slideshare.net/*"
    - "http://twitter.com/*/statuses/*"
    - "http://*.wikipedia.org/wiki/*"
    - "http://*.wordpress.com/[0-9]{4}/[0-9]{2}/[0-9]{2}/*"
    - "http://*.youtube.com/watch*"
 
:vimeo:
  :format: "json"
  :schemes:
    - "http://www.vimeo.com/groups/*/*"
    - "http://www.vimeo.com/*"
 
:hulu:
  :format: "xml"
  :schemes:
    - "http://www.hulu.com/watch/*"
 
:flickr:
  :format: "xml"
  :schemes:
    - "http://*.flickr.com/*"
    
:viddler:
  :format: "xml"
  :schemes:
    - "http://*.viddler.com/*"