mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
tmdb: Remove olf *WithWatched structs
These are not used and are a remnant from before the server restructure (it was another solution i was cooking up, but didn't end up going with).
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/sbondCo/Watcharr/database/entity"
|
||||
"github.com/sbondCo/Watcharr/domain"
|
||||
"github.com/sbondCo/Watcharr/util"
|
||||
)
|
||||
@@ -127,15 +126,6 @@ func (t *SearchMultiResult) AsMedia() domain.Media {
|
||||
return m
|
||||
}
|
||||
|
||||
type SearchMultiResponseWithWatched struct {
|
||||
SearchResponse[SearchMultiResultWithWatched]
|
||||
}
|
||||
|
||||
type SearchMultiResultWithWatched struct {
|
||||
SearchMultiResult
|
||||
Watched *entity.Watched `json:"watched,omitempty"`
|
||||
}
|
||||
|
||||
//
|
||||
// Movie Search
|
||||
//
|
||||
@@ -168,15 +158,6 @@ func (t *SearchMovieResult) AsMedia() domain.Media {
|
||||
return m
|
||||
}
|
||||
|
||||
type SearchMoviesResponseWithWatched struct {
|
||||
SearchResponse[SearchMovieResultWithWatched]
|
||||
}
|
||||
|
||||
type SearchMovieResultWithWatched struct {
|
||||
SearchMovieResult
|
||||
Watched *entity.Watched `json:"watched,omitempty"`
|
||||
}
|
||||
|
||||
//
|
||||
// Tv Shows Search
|
||||
//
|
||||
@@ -209,15 +190,6 @@ func (t *SearchShowsResult) AsMedia() domain.Media {
|
||||
return m
|
||||
}
|
||||
|
||||
type SearchShowsResponseWithWatched struct {
|
||||
SearchResponse[SearchShowsResultWithWatched]
|
||||
}
|
||||
|
||||
type SearchShowsResultWithWatched struct {
|
||||
SearchShowsResult
|
||||
Watched *entity.Watched `json:"watched,omitempty"`
|
||||
}
|
||||
|
||||
//
|
||||
// People Search
|
||||
//
|
||||
|
||||
@@ -13,9 +13,6 @@ import (
|
||||
"github.com/sbondCo/Watcharr/database/entity"
|
||||
)
|
||||
|
||||
// TODO The *WithWatched structs likely need to go in the watched package (or with go 1.25 can we
|
||||
// fix needing so many extra structs for the *WithWatched types and functions)
|
||||
|
||||
var ContentStore = gocache.New(time.Hour*24, time.Minute)
|
||||
|
||||
type ContentProvider interface {
|
||||
|
||||
Reference in New Issue
Block a user