-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from koikiss-dev/TokyoTF
Fixed: Paths Typescript, Add new devDependencies
- Loading branch information
Showing
19 changed files
with
821 additions
and
593 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Router } from "express"; | ||
import { AnimeBlix } from "../../../../scraper/sites/anime/AnimeBlix/AnimeBlix"; | ||
const Anime = new AnimeBlix(); | ||
const router = Router(); | ||
|
||
// Filter | ||
router.get("/anime/animeblix/filter", async (req, res) => { | ||
const { search, type, page, year, genre } = req.query | ||
|
||
const data = await Anime.GetAnimeByFilter(search as string, type as unknown as number, page as unknown as number, year as string, genre as string) | ||
res.send(data) | ||
}); | ||
|
||
// Anime Info +(Episodes list) | ||
router.get("/anime/animeblix/name/:name", async (req, res) => { | ||
|
||
const { name } = req.params | ||
const data = await Anime.GetAnimeInfo(name.includes("ver-")? name.replace("ver-","") : name) | ||
res.send(data) | ||
|
||
}); | ||
|
||
// Episode Info +(Video Servers) | ||
router.get("/anime/animeblix/episode/:episode", async (req, res) => { | ||
const { episode } = req.params | ||
const data = await Anime.GetEpisodeServers(episode) | ||
res.send(data) | ||
|
||
}); | ||
|
||
export default router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Router } from "express"; | ||
import { Dramanice } from "@providers/dramanice/Dramanice"; | ||
const Dorama = new Dramanice(); | ||
const router = Router(); | ||
|
||
// Filter | ||
router.get("/anime/animelatinohd/filter", async (req, res) => { | ||
const { search, type, page, year, genre } = req.query | ||
|
||
const data = await Dorama.GetAnimeByFilter(search as string, type as unknown as number, page as unknown as number, year as string, genre as string) | ||
res.send(data) | ||
}); | ||
|
||
// Anime Info +(Episodes list) | ||
router.get("/anime/animelatinohd/name/:name", async (req, res) => { | ||
|
||
const { name } = req.params | ||
const data = await Dorama.GetAnimeInfo(name) | ||
res.send(data) | ||
|
||
}); | ||
|
||
// Episode Info +(Video Servers) | ||
router.get("/anime/animelatinohd/episode/:episode", async (req, res) => { | ||
const { lang } = req.query | ||
const { episode } = req.params | ||
const data = await Dorama.GetEpisodeServers(episode, lang as string) | ||
res.send(data) | ||
|
||
}); | ||
|
||
export default router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.