chore: formatting
This commit is contained in:
@@ -80,7 +80,7 @@ func (h *Handler) HandleWatchPage(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// resolve current episode: query param > saved progress > first episode
|
// resolve current episode: query param > saved progress > first episode
|
||||||
currentEpID := r.URL.Query().Get("ep")
|
currentEpID := r.URL.Query().Get("ep")
|
||||||
if currentEpID == "" {
|
if currentEpID == "" {
|
||||||
if user != nil {
|
if user != nil {
|
||||||
entry, err := h.svc.db.GetWatchListEntry(r.Context(), db.GetWatchListEntryParams{
|
entry, err := h.svc.db.GetWatchListEntry(r.Context(), db.GetWatchListEntryParams{
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ func (s *Service) fetchPlaybackSourcesAndSegments(ctx context.Context, showID st
|
|||||||
segmentsCh <- s.fetchSkipSegments(ctx, malID, episode)
|
segmentsCh <- s.fetchSkipSegments(ctx, malID, episode)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
modeSources := make(map[string]ModeSource)
|
modeSources := make(map[string]ModeSource)
|
||||||
// collect results from both mode goroutines
|
// collect results from both mode goroutines
|
||||||
for range 2 {
|
for range 2 {
|
||||||
result := <-modeCh
|
result := <-modeCh
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const defaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/
|
|||||||
|
|
||||||
// idPattern extracts the watch order ID from chiaki.site URLs
|
// idPattern extracts the watch order ID from chiaki.site URLs
|
||||||
var idPattern = regexp.MustCompile(`/id/(\d+)`)
|
var idPattern = regexp.MustCompile(`/id/(\d+)`)
|
||||||
|
|
||||||
// malLinkPattern extracts MAL IDs from watch order entries
|
// malLinkPattern extracts MAL IDs from watch order entries
|
||||||
var malLinkPattern = regexp.MustCompile(`myanimelist\.net/anime/(\d+)`)
|
var malLinkPattern = regexp.MustCompile(`myanimelist\.net/anime/(\d+)`)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user