chore: formatting
This commit is contained in:
@@ -10,13 +10,13 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"mal/internal/domain"
|
||||
"mal/pkg/net/utls"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"mal/internal/domain"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -161,7 +161,7 @@ func (c *AllAnimeProvider) GetStreams(ctx context.Context, animeID int, titleCan
|
||||
|
||||
// 3. Return the first usable source
|
||||
primary := sources[0]
|
||||
|
||||
|
||||
result := &domain.StreamResult{
|
||||
URL: primary.URL,
|
||||
Referer: primary.Referer,
|
||||
|
||||
@@ -3,13 +3,13 @@ package app
|
||||
import (
|
||||
"mal/integrations/jikan"
|
||||
"mal/integrations/playback/allanime"
|
||||
"mal/internal/database"
|
||||
"mal/internal/auth"
|
||||
"mal/internal/anime"
|
||||
"mal/internal/watchlist"
|
||||
"mal/internal/auth"
|
||||
"mal/internal/database"
|
||||
"mal/internal/playback"
|
||||
"mal/internal/server"
|
||||
"mal/internal/templates"
|
||||
"mal/internal/watchlist"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gin-gonic/gin/render"
|
||||
|
||||
@@ -18,4 +18,3 @@ func DisplayTitle(titleEnglish, titleJapanese sql.NullString, titleOriginal stri
|
||||
func (r GetUserWatchListRow) DisplayTitle() string {
|
||||
return DisplayTitle(r.TitleEnglish, r.TitleJapanese, r.TitleOriginal)
|
||||
}
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@ func GetDBFile() string {
|
||||
}
|
||||
return "mal.db"
|
||||
}
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@ type StreamSource struct {
|
||||
}
|
||||
|
||||
type StreamResult struct {
|
||||
URL string
|
||||
Referer string
|
||||
Subtitles []Subtitle
|
||||
Qualities []StreamSource
|
||||
URL string
|
||||
Referer string
|
||||
Subtitles []Subtitle
|
||||
Qualities []StreamSource
|
||||
}
|
||||
|
||||
type Subtitle struct {
|
||||
|
||||
@@ -22,11 +22,11 @@ import (
|
||||
)
|
||||
|
||||
type playbackService struct {
|
||||
repo domain.PlaybackRepository
|
||||
providers []domain.Provider
|
||||
jikan *jikan.Client
|
||||
httpClient *http.Client
|
||||
proxyTokenKey string
|
||||
repo domain.PlaybackRepository
|
||||
providers []domain.Provider
|
||||
jikan *jikan.Client
|
||||
httpClient *http.Client
|
||||
proxyTokenKey string
|
||||
}
|
||||
|
||||
type SkipSegment struct {
|
||||
|
||||
Reference in New Issue
Block a user