Skip to content

Commit

Permalink
further polished anime links
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Jul 4, 2020
1 parent fa492ed commit 3487657
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions engine/animeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ func (engine *AnimeOut) updateDownloadProps(downloadCollector *colly.Collector,
link = strings.TrimPrefix(link, "https://")
link = "http://public.animeout.xyz/" + link
}
downloadlink, _ := url.Parse(link)
if !strings.HasPrefix(file, "#") {
episodeMap[file] = downloadlink
}
if index == 0 {
movie.DownloadLink = downloadlink
if path.Ext(filename) == ".mkv" || path.Ext(filename) == ".mp4" {
downloadlink, _ := url.Parse(link)
if !strings.HasPrefix(file, "#") {
episodeMap[file] = downloadlink
}
if index == 0 {
movie.DownloadLink = downloadlink
}
}
}
index++
Expand Down

0 comments on commit 3487657

Please sign in to comment.