Skip to content

Commit

Permalink
cleaning takanimelist
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Sep 26, 2020
1 parent 24988c5 commit f046591
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/takanimelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ func (engine *TakanimeList) updateDownloadProps(downloadCollector *colly.Collect
movie.DownloadLink, _ = url.Parse(linkArray[i])
finalLink := retrieveSingle(internaldownloadCollector, linkArray[i])
downloadLink, _ := url.Parse(finalLink)
episodeMap[titleArray[i]] = downloadLink
if strconv.Itoa(i) != "" && downloadLink.String() != "" {
episodeMap[titleArray[i]] = downloadLink
}
}
movie.SDownloadLink = episodeMap
})
Expand Down

0 comments on commit f046591

Please sign in to comment.