feat: torrent streaming with hls transcoding (#1)

* feat: add ffmpeg for hls streaming

* feat: torrent streaming with hls transcoding

- add nyaa.si torrent search client
- add streaming service using anacrolix/torrent
- add hls transcoding via ffmpeg for browser playback
- add watch page with episode selection
- add socks5 proxy support via TORRENT_PROXY env
- switch to modernc.org/sqlite (pure go, no cgo conflicts)
- update dockerfile with ffmpeg
This commit is contained in:
2026-04-07 13:23:08 +02:00
committed by GitHub
parent 579b194eb9
commit a25e8f1655
27 changed files with 3744 additions and 329 deletions

View File

@@ -51,3 +51,15 @@ func (s *Service) GetAnimeDetails(ctx context.Context, id int, userID string) (j
func (s *Service) GetRelations(id int) []jikan.RelationEntry {
return s.jikanClient.GetFullRelations(id)
}
func (s *Service) GetEpisodes(id int, page int) (jikan.EpisodesResult, error) {
return s.jikanClient.GetEpisodes(id, page)
}
func (s *Service) GetAllEpisodes(id int) ([]jikan.Episode, error) {
return s.jikanClient.GetAllEpisodes(id)
}
func (s *Service) GetAnime(id int) (jikan.Anime, error) {
return s.jikanClient.GetAnimeByID(id)
}