Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from gazes-media/main
Browse files Browse the repository at this point in the history
Goroutine for the download
  • Loading branch information
exatombe authored Dec 5, 2023
2 parents 04626fe + 0527949 commit 171316e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func DownloadHandler(w http.ResponseWriter, r *http.Request, id, ep string, cach
}

w.Header().Set("Content-Type", "video/mp4")
downloadEpisode(episode, cache)
go downloadEpisode(episode, cache)
episodeName := episode.Vostfr.Title + "- Episode " + strconv.Itoa(episode.Vostfr.Num)
videoIsReady, found := cache.Get(episodeName)
if found {
Expand Down

0 comments on commit 171316e

Please sign in to comment.