From 502d7df014474561e3a7b428b85b6666ba8da33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20H=C3=A4nsel?= Date: Mon, 31 Jul 2017 07:06:46 +0200 Subject: [PATCH] Bugfix: Videos weren't found because they have no underscore before "video" --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ad8a19e..8c67537 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ func watch(dir SkypeProfileDirectory) { if e.Op&fsnotify.Write == fsnotify.Write { if strings.HasSuffix(e.Name, "_fullsize_distr.jpg") || strings.HasSuffix(e.Name, "_fullsize_distr.png") || - strings.HasSuffix(e.Name, "_video_distr.mp4") { + strings.HasSuffix(e.Name, "video_distr.mp4") { name := filepath.Base(e.Name) err = copyFile(filepath.Join(output, name), e.Name) @@ -136,7 +136,7 @@ func sync(from string, to string) { } if !(strings.HasSuffix(f.Name(), "_fullsize_distr.jpg") || strings.HasSuffix(f.Name(), "_fullsize_distr.png") || - strings.HasSuffix(f.Name(), "_video_distr.mp4")) { + strings.HasSuffix(f.Name(), "video_distr.mp4")) { continue }