mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
finished wiring tv request settings to tv search
This commit is contained in:
parent
75599aed78
commit
88d7104def
3 changed files with 8 additions and 1 deletions
1
PlexRequests.UI/Content/search.js
vendored
1
PlexRequests.UI/Content/search.js
vendored
|
@ -472,6 +472,7 @@ $(function () {
|
||||||
disableTvRequestsByEpisode: result.disableTvRequestsByEpisode,
|
disableTvRequestsByEpisode: result.disableTvRequestsByEpisode,
|
||||||
disableTvRequestsBySeason: result.disableTvRequestsBySeason
|
disableTvRequestsBySeason: result.disableTvRequestsBySeason
|
||||||
};
|
};
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,5 +55,7 @@ namespace PlexRequests.UI.Models
|
||||||
public int SiteRating { get; set; }
|
public int SiteRating { get; set; }
|
||||||
public List<Store.EpisodesModel> Episodes { get; set; }
|
public List<Store.EpisodesModel> Episodes { get; set; }
|
||||||
public bool TvFullyAvailable { get; set; }
|
public bool TvFullyAvailable { get; set; }
|
||||||
|
public bool DisableTvRequestsByEpisode { get; set; }
|
||||||
|
public bool DisableTvRequestsBySeason { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -290,8 +290,10 @@ namespace PlexRequests.UI.Modules
|
||||||
|
|
||||||
private async Task<Response> SearchTvShow(string searchTerm)
|
private async Task<Response> SearchTvShow(string searchTerm)
|
||||||
{
|
{
|
||||||
|
|
||||||
Analytics.TrackEventAsync(Category.Search, Action.TvShow, searchTerm, Username, CookieHelper.GetAnalyticClientId(Cookies));
|
Analytics.TrackEventAsync(Category.Search, Action.TvShow, searchTerm, Username, CookieHelper.GetAnalyticClientId(Cookies));
|
||||||
var plexSettings = await PlexService.GetSettingsAsync();
|
var plexSettings = await PlexService.GetSettingsAsync();
|
||||||
|
var prSettings = await PrService.GetSettingsAsync();
|
||||||
var providerId = string.Empty;
|
var providerId = string.Empty;
|
||||||
|
|
||||||
var apiTv = new List<TvMazeSearch>();
|
var apiTv = new List<TvMazeSearch>();
|
||||||
|
@ -336,7 +338,9 @@ namespace PlexRequests.UI.Modules
|
||||||
Runtime = t.show.runtime.ToString(),
|
Runtime = t.show.runtime.ToString(),
|
||||||
SeriesId = t.show.id,
|
SeriesId = t.show.id,
|
||||||
SeriesName = t.show.name,
|
SeriesName = t.show.name,
|
||||||
Status = t.show.status
|
Status = t.show.status,
|
||||||
|
DisableTvRequestsByEpisode = prSettings.DisableTvRequestsByEpisode,
|
||||||
|
DisableTvRequestsBySeason = prSettings.DisableTvRequestsBySeason
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue