mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
finished #26
This commit is contained in:
parent
2187b1453a
commit
b2144f3f69
7 changed files with 1122 additions and 1100 deletions
|
@ -47,6 +47,8 @@ using PlexRequests.Store;
|
|||
using PlexRequests.UI.Helpers;
|
||||
using PlexRequests.UI.Models;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using PlexRequests.Api.Models.Tv;
|
||||
using PlexRequests.Store.Models;
|
||||
using PlexRequests.Store.Repository;
|
||||
|
@ -638,9 +640,20 @@ namespace PlexRequests.UI.Modules
|
|||
seasonsList.Add(model.SeasonCount);
|
||||
model.SeasonsRequested = "Latest";
|
||||
break;
|
||||
default:
|
||||
case "all":
|
||||
model.SeasonsRequested = "All";
|
||||
break;
|
||||
default:
|
||||
var split = seasons.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var seasonsCount = new int[split.Length];
|
||||
for (var i = 0; i < split.Length; i++)
|
||||
{
|
||||
int tryInt;
|
||||
int.TryParse(split[i], out tryInt);
|
||||
seasonsCount[i] = tryInt;
|
||||
}
|
||||
seasonsList.AddRange(seasonsCount);
|
||||
break;
|
||||
}
|
||||
|
||||
model.SeasonList = seasonsList.ToArray();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue