chore: fix whitespace
This commit is contained in:
@@ -199,15 +199,15 @@ func (h *Handler) HandleEpisodeData(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]any{
|
json.NewEncoder(w).Encode(map[string]any{
|
||||||
"mal_id": watchData.MalID,
|
"mal_id": watchData.MalID,
|
||||||
"title": watchData.Title,
|
"title": watchData.Title,
|
||||||
"current_episode": watchData.CurrentEpisode,
|
"current_episode": watchData.CurrentEpisode,
|
||||||
"total_episodes": anime.Episodes,
|
"total_episodes": anime.Episodes,
|
||||||
"initial_mode": watchData.InitialMode,
|
"initial_mode": watchData.InitialMode,
|
||||||
"token": "", // The token might be per-source, wait, in Go it was per-mode?
|
"token": "", // The token might be per-source, wait, in Go it was per-mode?
|
||||||
"available_modes": watchData.AvailableModes,
|
"available_modes": watchData.AvailableModes,
|
||||||
"mode_sources": watchData.ModeSources,
|
"mode_sources": watchData.ModeSources,
|
||||||
"segments": watchData.Segments,
|
"segments": watchData.Segments,
|
||||||
"episode_title": "", // Find episode title if possible
|
"episode_title": "", // Find episode title if possible
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user