In principle you can extend the rules for autolinks by registering
additional oembed services:
import re
from gluon.contrib.autolinks import EMBED_MAPS
EMBED_MAPS.append((re.compile('http://\S*?flickr.com/\S*'),
'http://www.flickr.com/services/oembed/'))
but this cannot be done in a model or controller. This must be done in a
module (your own module) and then you import the module that performs the
extensions.
On Tuesday, August 21, 2012 4:17:42 PM UTC-5, Rob_McC wrote:
>
> Thanks !
>
> works perfectly.
>
>
> > youtu.be is not a well known oembed service provider.
>
> Funny the
>
> http://youtu.be/theVideoID
> tag, is all they've been using to SHARE a link lately.
>
> Also, the markmin syntax seems to work well.
> http://web2py.com/examples/static/markmin.html
>
>
>
> <https://lh4.googleusercontent.com/-ME6HiUjk7_I/UDP5unu2F5I/AAAAAAAAATI/qDnQZSauU5U/s1600/Screen+Shot+2012-08-21+at+5.11.09+PM.png>
>
>
>
>
>>>>
--