Skip to content

Commit

Permalink
remove newline to fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Jul 4, 2020
1 parent 72b9b7b commit 22213c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func SelectOpts(title string, options []string) (int, string) {
Size: 10,
}

log.Debug(prompt)
index, result, err := prompt.Run()
if err != nil {
log.Fatalf("Prompt failed %v\n", err)
Expand Down
1 change: 1 addition & 0 deletions engine/coolmoviez.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (engine *CoolMoviez) parseSingleMovie(el *colly.HTMLElement, index int) (Mo
if strings.HasSuffix(movie.Title, appendage) {
movie.Title = strings.TrimSuffix(movie.Title, appendage)
}
movie.Title = strings.TrimSuffix(movie.Title, "\n")
re := regexp.MustCompile(`(\d+)`)
stringsub := re.FindStringSubmatch(movie.Title)
if len(stringsub) > 0 {
Expand Down

0 comments on commit 22213c6

Please sign in to comment.