Skip to content

Commit

Permalink
Bugfix: Videos weren't found because they have no underscore before "…
Browse files Browse the repository at this point in the history
…video"
  • Loading branch information
AndreKR committed Jul 31, 2017
1 parent 3948c5e commit 502d7df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}

Expand Down

0 comments on commit 502d7df

Please sign in to comment.