mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 10:14:13 -04:00
Sorting seasons on show query
This commit is contained in:
parent
29ed7dfa0a
commit
f318d66efe
@ -76,7 +76,10 @@ namespace Kyoo.Controllers
|
||||
|
||||
public Show GetShowBySlug(string slug)
|
||||
{
|
||||
return (from show in _database.Shows where show.Slug == slug select show).FirstOrDefault();
|
||||
Show ret = (from show in _database.Shows where show.Slug == slug select show).FirstOrDefault();
|
||||
if (ret != null)
|
||||
ret.Seasons = ret.Seasons.OrderBy(x => x.SeasonNumber);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Show GetShow(string path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user