Skip to content

Commit ae2cdd1

Browse files
committed
url query decode fixes #31
1 parent f6d76d8 commit ae2cdd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/animeout.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (engine *AnimeOut) parseSingleMovie(el *colly.HTMLElement, index int) (Movi
6262
Index: index,
6363
IsSeries: true,
6464
Source: engine.Name,
65+
Size: "---MB",
6566
}
6667
movie.Title = strings.TrimSpace(el.ChildText("h3.post-title"))
6768
movie.CoverPhotoLink = el.ChildAttr("img", "src")
@@ -90,6 +91,7 @@ func (engine *AnimeOut) updateDownloadProps(downloadCollector *colly.Collector,
9091
if (link != "#") && (link != "") {
9192
_, filename := path.Split(link)
9293
file := strings.TrimSuffix(filename, path.Ext(filename))
94+
file, _ = url.QueryUnescape(file)
9395
if strings.HasPrefix(link, "http://download.animeout.com/") {
9496
link = strings.TrimPrefix(link, "http://download.animeout.com/")
9597
link = "http://public.animeout.xyz/sv1.animeout.com/" + link

0 commit comments

Comments
 (0)