Skip to content

Commit

Permalink
url query decode fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Jun 29, 2020
1 parent f6d76d8 commit ae2cdd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/animeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (engine *AnimeOut) parseSingleMovie(el *colly.HTMLElement, index int) (Movi
Index: index,
IsSeries: true,
Source: engine.Name,
Size: "---MB",
}
movie.Title = strings.TrimSpace(el.ChildText("h3.post-title"))
movie.CoverPhotoLink = el.ChildAttr("img", "src")
Expand Down Expand Up @@ -90,6 +91,7 @@ func (engine *AnimeOut) updateDownloadProps(downloadCollector *colly.Collector,
if (link != "#") && (link != "") {
_, filename := path.Split(link)
file := strings.TrimSuffix(filename, path.Ext(filename))
file, _ = url.QueryUnescape(file)
if strings.HasPrefix(link, "http://download.animeout.com/") {
link = strings.TrimPrefix(link, "http://download.animeout.com/")
link = "http://public.animeout.xyz/sv1.animeout.com/" + link
Expand Down

0 comments on commit ae2cdd1

Please sign in to comment.