diff --git a/django_lostplaces/lostplaces/models/external_links.py b/django_lostplaces/lostplaces/models/external_links.py index dda03de..1d126ff 100644 --- a/django_lostplaces/lostplaces/models/external_links.py +++ b/django_lostplaces/lostplaces/models/external_links.py @@ -8,9 +8,14 @@ LINK_TYPES = ( ('vimeo', "Vimeo"), ('flickr', 'Flickr'), ('googlephotos', "Google Photos"), - ('photoalbum', "Photo album") + ('photoalbum', "Photo album"), ) +LINK_DOMAINS = { + 'youtu.be': 'youtube', + 'y2u.be': 'youtube', +} + class ExternalLink(PlaceAsset): class Meta: