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