Skip to content

Commit

Permalink
Main: stickers ignoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurumishka committed May 26, 2022
1 parent 83637dd commit c6c495c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func download(file string, ch chan<- string) {
start := time.Now()
url := baseUrl + file[1:]
meta := strings.Split(file[1:], "/")
if meta[0] == "stickers" {
ch <- fmt.Sprintf("%.2fs %10d найден стикер, игнорирую...\n", time.Since(start).Seconds(), 0)
return
}
board, thread, name := meta[0], meta[2], meta[3] // [1] for /src/

path := thread + "/" + pics
Expand Down

0 comments on commit c6c495c

Please sign in to comment.