|
|
@ -76,7 +76,7 @@ namespace PlexRequests.UI.Modules
|
|
|
|
Get["/"] = _ => LoadRequests();
|
|
|
|
Get["/"] = _ => LoadRequests();
|
|
|
|
Get["/movies", true] = async (x, ct) => await GetMovies();
|
|
|
|
Get["/movies", true] = async (x, ct) => await GetMovies();
|
|
|
|
Get["/tvshows", true] = async (c, ct) => await GetTvShows();
|
|
|
|
Get["/tvshows", true] = async (c, ct) => await GetTvShows();
|
|
|
|
Get["/albums", true] = async (x,ct) => await GetAlbumRequests();
|
|
|
|
Get["/albums", true] = async (x, ct) => await GetAlbumRequests();
|
|
|
|
Post["/delete", true] = async (x, ct) => await DeleteRequest((int)Request.Form.id);
|
|
|
|
Post["/delete", true] = async (x, ct) => await DeleteRequest((int)Request.Form.id);
|
|
|
|
Post["/reportissue", true] = async (x, ct) => await ReportIssue((int)Request.Form.requestId, (IssueState)(int)Request.Form.issue, null);
|
|
|
|
Post["/reportissue", true] = async (x, ct) => await ReportIssue((int)Request.Form.requestId, (IssueState)(int)Request.Form.issue, null);
|
|
|
|
Post["/reportissuecomment", true] = async (x, ct) => await ReportIssue((int)Request.Form.requestId, IssueState.Other, (string)Request.Form.commentArea);
|
|
|
|
Post["/reportissuecomment", true] = async (x, ct) => await ReportIssue((int)Request.Form.requestId, IssueState.Other, (string)Request.Form.commentArea);
|
|
|
@ -156,9 +156,7 @@ namespace PlexRequests.UI.Modules
|
|
|
|
ReleaseYear = movie.ReleaseDate.Year.ToString(),
|
|
|
|
ReleaseYear = movie.ReleaseDate.Year.ToString(),
|
|
|
|
Available = movie.Available,
|
|
|
|
Available = movie.Available,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Issues = movie.Issues.ToString().CamelCaseToWords(),
|
|
|
|
IssueId = movie.IssueId,
|
|
|
|
OtherMessage = movie.OtherMessage,
|
|
|
|
|
|
|
|
AdminNotes = movie.AdminNote,
|
|
|
|
|
|
|
|
Qualities = qualities.ToArray()
|
|
|
|
Qualities = qualities.ToArray()
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
|
@ -223,9 +221,7 @@ namespace PlexRequests.UI.Modules
|
|
|
|
ReleaseYear = tv.ReleaseDate.Year.ToString(),
|
|
|
|
ReleaseYear = tv.ReleaseDate.Year.ToString(),
|
|
|
|
Available = tv.Available,
|
|
|
|
Available = tv.Available,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Issues = tv.Issues.ToString().CamelCaseToWords(),
|
|
|
|
IssueId = tv.IssueId,
|
|
|
|
OtherMessage = tv.OtherMessage,
|
|
|
|
|
|
|
|
AdminNotes = tv.AdminNote,
|
|
|
|
|
|
|
|
TvSeriesRequestType = tv.SeasonsRequested,
|
|
|
|
TvSeriesRequestType = tv.SeasonsRequested,
|
|
|
|
Qualities = qualities.ToArray()
|
|
|
|
Qualities = qualities.ToArray()
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -266,9 +262,7 @@ namespace PlexRequests.UI.Modules
|
|
|
|
ReleaseYear = album.ReleaseDate.Year.ToString(),
|
|
|
|
ReleaseYear = album.ReleaseDate.Year.ToString(),
|
|
|
|
Available = album.Available,
|
|
|
|
Available = album.Available,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Admin = IsAdmin,
|
|
|
|
Issues = album.Issues.ToString().CamelCaseToWords(),
|
|
|
|
IssueId = album.IssueId,
|
|
|
|
OtherMessage = album.OtherMessage,
|
|
|
|
|
|
|
|
AdminNotes = album.AdminNote,
|
|
|
|
|
|
|
|
TvSeriesRequestType = album.SeasonsRequested,
|
|
|
|
TvSeriesRequestType = album.SeasonsRequested,
|
|
|
|
MusicBrainzId = album.MusicBrainzId,
|
|
|
|
MusicBrainzId = album.MusicBrainzId,
|
|
|
|
ArtistName = album.ArtistName
|
|
|
|
ArtistName = album.ArtistName
|
|
|
|