Methods
-
<protected, static> start( config )
-
Description
Start the server
Server links :
[USE]*- Used to do consoleGroup
[GET]/new/anime?- Add a new anime
Param :name- The name of the anime
Param :thumbnailLink- The path to the thumbnail
Send : {"id":Anime Id}
[GET]/new/episode?- Add a new episode to an anime
Send : {"id":Anime Id}
[GET]/get/list- Get the anime list
Send :Anime.publicList
[GET]/get/episode/info?- Get the info of an episode
Param :animeId- The id of the anime
Param :episodeId- The id of the episode in the anime
Send :EpisodeInfo
[GET]/get/episode/download?- Download an episode
Param :animeId
Param :episodeId
Param :videoPlayerId
Param :format
Param :url
Send : {"progress":DownloadEpisode.progress}
[GET]/get/list/download- Get download list
Send: {
"current": {
"progress":DownloadEpisode.progress
"episode": Episode's name
},
"list": [
Episodes's name
],
"error": [
{
"episode": Episode's name
"error": Error
}
]
}
[GET]/- Index.html
[GET]/js/*- Folder js
[GET]/html/*- Folder html
[GET]/css/*- Folder css
[GET]/fonts/*- Folder fonts
[GET]/asset/ico/*- Folder assets ico
[GET]/episode/:animeId/:episodeId- Get a local episode in folder episode
Param :animeId- The id of the anime
Param :episodeId- The id of the episode in the anime
[GET]/asset/thumbnail/:text.png- Generate an image or return a generated image Param :text- The text to show on the image
Param :width- The image width
Param :height- The image height
Param :textSize- The text size
Param :backgroundColor- The background color
Param :textColor- The text colorParameters
Name Type Description configConfig Details