refactor: remove unused playback methods and source resolution

This commit is contained in:
2026-05-12 12:34:39 +02:00
parent fc1726d1fd
commit 857bd85b4f
3 changed files with 0 additions and 115 deletions

View File

@@ -9,25 +9,6 @@ import (
"sync"
)
// resolveModeSource fetches sources for a given mode and selects the best one.
func (s *Service) resolveModeSource(ctx context.Context, showID string, episode string, mode string, quality string) (StreamSource, error) {
sources, err := s.allAnimeClient.GetEpisodeSources(ctx, showID, episode, mode)
if err != nil {
return StreamSource{}, err
}
ranked, err := rankSources(sources, quality)
if err != nil {
return StreamSource{}, err
}
selected, _, err := s.choosePlaybackSource(ctx, ranked, s.probeDirectMedia)
if err != nil {
return StreamSource{}, err
}
return selected, nil
}
// resolveModeSourceWithCache is like resolveModeSource but caches probe results.
func (s *Service) resolveModeSourceWithCache(