X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/c5ed685cce7a1d4666e36f1415ae449ab09cf0b9..ea9a4eea8ee61954c9ae52e8662139c8933ea95d:/librarian/__init__.py?ds=inline diff --git a/librarian/__init__.py b/librarian/__init__.py index a0d70e7..c9db26f 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -8,6 +8,18 @@ import urllib from .utils import XMLNamespace +VIDEO_PROVIDERS = { + 'youtube': { + 'url': 'https://www.youtube.com/watch?v=%s', + 'embed': '//www.youtube.com/embed/%s?controls=2&rel=0&showinfo=0&theme=light', + }, + 'vimeo': { + 'url': 'https://vimeo.com/%s', + 'embed': '//player.vimeo.com/video/%s', + }, +} + + class UnicodeException(Exception): def __str__(self): """ Dirty workaround for Python Unicode handling problems. """