Skip to content

Commit

Permalink
Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
haath committed Apr 20, 2020
1 parent e26b25d commit 48495ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/movies/movie.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ func (m Movie) GetTorrents(filters torrents.SearchFilters) ([]torrents.Torrent,
trnts, err := filters.SearchVideoTorrents(m.GetSearchQuery(false))

if m.AltTitle != "" {

var altTitleTorrents []torrents.Torrent

filters.SearchTerms = m.GetSearchTerms(true)
altTitleTorrents, err := filters.SearchVideoTorrents(m.GetSearchQuery(true))
altTitleTorrents, err = filters.SearchVideoTorrents(m.GetSearchQuery(true))

if altTitleTorrents != nil {
trnts = append(trnts, altTitleTorrents...)
Expand Down

0 comments on commit 48495ef

Please sign in to comment.