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 #53 from gazes-media/main
Browse files Browse the repository at this point in the history
Remove the thing that take TOO MUCH RAM FOR
  • Loading branch information
garder500 authored Dec 6, 2023
2 parents 268f7de + 0d21be5 commit 78db638
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 150 deletions.
2 changes: 0 additions & 2 deletions functions/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ func metaVideo(url string) string {
<meta property="og:image:height" content="720">
<meta property="og:image:type" content="image/jpeg">
<meta property="twitter:player" content="` + url + `">
<meta name="twitter:player:stream" content="` + url + `/mp4" />
<meta name="twitter:player:stream:content_type" content="video/mp4" />
<meta property="twitter:player:width" content="1280">
<meta property="twitter:player:height" content="720">`
}
Expand Down
10 changes: 0 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ func main() {
}
routes.EpisodeHandler(w, r, id, episode)
}))
router.Handle("/anime/{id}/episode/{episode}/mp4", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
id := mux.Vars(r)["id"]
episode := mux.Vars(r)["episode"]
if id == "" || episode == "" {
routes.NotFoundHandler(w, r)
return
}
routes.DownloadHandler(w, r, id, episode)
}))

router.HandleFunc("/history", func(w http.ResponseWriter, r *http.Request) {
routes.HistoryHandler(w, r)
Expand Down
138 changes: 0 additions & 138 deletions routes/download.go

This file was deleted.

0 comments on commit 78db638

Please sign in to comment.