summaryrefslogtreecommitdiff
path: root/importers/importer.go
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-28 13:11:54 +1000
committerJames Mills <prologic@shortcircuit.net.au>2020-03-28 13:11:54 +1000
commitdab8ea9f1a3d97532fc05775f41b3ff2b529798e (patch)
treee8e0e389d082df1b46ca26d8f52530a8c556ad47 /importers/importer.go
parent88b96784ab4fd19b13d0076d64a95300483363ca (diff)
Add vimeo video importerv1.1.4
Diffstat (limited to 'importers/importer.go')
-rw-r--r--importers/importer.go2
1 files changed, 1 insertions, 1 deletions
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