-
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 #178 from koikiss-dev/yako-fin
Fix routes and scrapers
- Loading branch information
Showing
5 changed files
with
152 additions
and
92 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,52 +1,63 @@ | ||
//genres animeflf | ||
export enum Genres { | ||
Action = "Acción", | ||
MartialArts = "Artes Marciales", | ||
Adventure = "Aventuras", | ||
Racing = "Carreras", | ||
ScienceFiction = "Ciencia Ficción", | ||
Comedy = "Comedia", | ||
Dementia = "Demencia", | ||
Demons = "Demonios", | ||
Sports = "Deportes", | ||
Drama = "Drama", | ||
Ecchi = "Ecchi", | ||
School = "Escolares", | ||
Space = "Espacial", | ||
Fantasy = "Fantasía", | ||
Harem = "Harem", | ||
Historical = "Histórico", | ||
Kids = "Infantil", | ||
Josei = "Josei", | ||
Games = "Juegos", | ||
Magic = "Magia", | ||
Mecha = "Mecha", | ||
Military = "Militar", | ||
Mystery = "Misterio", | ||
Music = "Música", | ||
Parody = "Parodia", | ||
Police = "Policía", | ||
Psychological = "Psicológico", | ||
SliceOfLife = "Recuentos de la vida", | ||
Romance = "Romance", | ||
Samurai = "Samurai", | ||
Seinen = "Seinen", | ||
Shoujo = "Shoujo", | ||
Shounen = "Shounen", | ||
Supernatural = "Sobrenatural", | ||
Superpowers = "Superpoderes", | ||
Suspense = "Suspenso", | ||
Horror = "Terror", | ||
Vampires = "Vampiros", | ||
Yaoi = "Yaoi", | ||
Yuri = "Yuri", | ||
Action = "accion", | ||
MartialArts = "artes-marciales", | ||
Adventure = "aventura", | ||
Racing = "carreras", | ||
ScienceFiction = "ciencia-ficcion", | ||
Comedy = "comedia", | ||
Dementia = "demencia", | ||
Demons = "demonios", | ||
Sports = "deportes", | ||
Drama = "drama", | ||
Ecchi = "ecchi", | ||
School = "escolares", | ||
Space = "espacial", | ||
Fantasy = "fantasia", | ||
Harem = "harem", | ||
Historical = "historico", | ||
Kids = "infantil", | ||
Josei = "josei", | ||
Games = "juegos", | ||
Magic = "magia", | ||
Mecha = "mecha", | ||
Military = "militar", | ||
Mystery = "misterio", | ||
Music = "musica", | ||
Parody = "parodia", | ||
Police = "policia", | ||
Psychological = "psicologico", | ||
SliceOfLife = "recuentos-de-la-vida", | ||
Romance = "romance", | ||
Samurai = "samurai", | ||
Seinen = "seinen", | ||
Shoujo = "shoujo", | ||
Shounen = "shounen", | ||
Supernatural = "sobrenatural", | ||
Superpowers = "superpoderes", | ||
Suspense = "suspenso", | ||
Horror = "terror", | ||
Vampires = "vampiros", | ||
Yaoi = "yaoi", | ||
Yuri = "yuri", | ||
} | ||
|
||
export enum StatusAnimeflv { | ||
OnGoing = "En emision", | ||
Finished = "Finalizado", | ||
Upcoming = "Próximamente", | ||
OnGoing = "1", | ||
Finished = "2", | ||
Upcoming = "3", | ||
} | ||
|
||
export type TypeAnimeflv = "all" | 1 | 2 | 3 | 4; | ||
export type OrderAnimeflv = "all" | 1 | 2 | 3 | 4 | 5; | ||
export enum TypeAnimeflv { | ||
TV = "tv", | ||
MOVIE = "movie", | ||
SPECIAL = "special", | ||
OVA = "ova", | ||
} | ||
export enum OrderAnimeflv { | ||
DEFAULT = "default", | ||
UPDATED = "updated", | ||
ADDED = "added", | ||
TITLE = "title", | ||
RATING = "rating", | ||
} |
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,9 @@ | ||
import { AxiosError } from "axios"; | ||
|
||
export class ScraperErrorResponse extends AxiosError { | ||
constructor(message: string, name?: string) { | ||
super(message); | ||
this.name = name || "Server error"; | ||
this.stack = null; | ||
} | ||
} |