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

Commit

Permalink
Goroutine for the download
Browse files Browse the repository at this point in the history
  • Loading branch information
garder500 committed Dec 5, 2023
1 parent 4127eba commit 0527949
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 0527949

Please sign in to comment.