From dab8ea9f1a3d97532fc05775f41b3ff2b529798e Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 28 Mar 2020 13:11:54 +1000 Subject: Add vimeo video importer --- importers/importer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'importers/importer.go') diff --git a/importers/importer.go b/importers/importer.go index c74d621..f5d4b36 100644 --- a/importers/importer.go +++ b/importers/importer.go @@ -25,7 +25,7 @@ type Importer interface { func NewImporter(url string) (Importer, error) { if strings.Contains(url, "youtube.com") || strings.HasPrefix(url, "youtube:") { return &YoutubeImporter{}, nil - } else if strings.Contains(url, "youtube.com") || strings.HasPrefix(url, "youtube:") { + } else if strings.Contains(url, "vimeo.com") || strings.HasPrefix(url, "vimeo:") { return &VimeoImporter{}, nil } else { return nil, ErrUnsupportedVideoURL -- cgit v1.2.3