Cleaning up the video & the subtitle api

This commit is contained in:
Zoe Roux
2020-10-26 06:22:03 +01:00
parent c07494c9e8
commit 2dd0806517
9 changed files with 140 additions and 128 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ namespace Kyoo.Controllers
Task<Episode> GetEpisode(int id);
Task<Episode> GetEpisode(int showID, int seasonNumber, int episodeNumber);
Task<Genre> GetGenre(int id);
Task<Track> GetTrack(int id);
Task<Studio> GetStudio(int id);
Task<People> GetPeople(int id);
@@ -42,7 +43,7 @@ namespace Kyoo.Controllers
Task<Season> GetSeason(string showSlug, int seasonNumber);
Task<Episode> GetEpisode(string showSlug, int seasonNumber, int episodeNumber);
Task<Episode> GetMovieEpisode(string movieSlug);
Task<Track> GetTrack(int id);
Task<Track> GetTrack(string slug);
Task<Genre> GetGenre(string slug);
Task<Studio> GetStudio(string slug);
Task<People> GetPeople(string slug);
@@ -109,7 +109,12 @@ namespace Kyoo.Controllers
{
return EpisodeRepository.Get(showID, seasonNumber, episodeNumber);
}
public Task<Track> GetTrack(string slug)
{
return TrackRepository.Get(slug);
}
public Task<Genre> GetGenre(int id)
{
return GenreRepository.Get(id);