Skip to content

Commit 502d7df

Browse files
committed
Bugfix: Videos weren't found because they have no underscore before "video"
1 parent 3948c5e commit 502d7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func watch(dir SkypeProfileDirectory) {
110110
if e.Op&fsnotify.Write == fsnotify.Write {
111111
if strings.HasSuffix(e.Name, "_fullsize_distr.jpg") ||
112112
strings.HasSuffix(e.Name, "_fullsize_distr.png") ||
113-
strings.HasSuffix(e.Name, "_video_distr.mp4") {
113+
strings.HasSuffix(e.Name, "video_distr.mp4") {
114114

115115
name := filepath.Base(e.Name)
116116
err = copyFile(filepath.Join(output, name), e.Name)
@@ -136,7 +136,7 @@ func sync(from string, to string) {
136136
}
137137
if !(strings.HasSuffix(f.Name(), "_fullsize_distr.jpg") ||
138138
strings.HasSuffix(f.Name(), "_fullsize_distr.png") ||
139-
strings.HasSuffix(f.Name(), "_video_distr.mp4")) {
139+
strings.HasSuffix(f.Name(), "video_distr.mp4")) {
140140
continue
141141
}
142142

0 commit comments

Comments
 (0)