|
|
@ -274,6 +274,12 @@ namespace Ombi.Controllers
|
|
|
|
public async Task<IActionResult> GetThemeContent([FromQuery]string url)
|
|
|
|
public async Task<IActionResult> GetThemeContent([FromQuery]string url)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var css = await _githubApi.GetThemesRawContent(url);
|
|
|
|
var css = await _githubApi.GetThemesRawContent(url);
|
|
|
|
|
|
|
|
var ombiSettings = await OmbiSettings();
|
|
|
|
|
|
|
|
if (ombiSettings.BaseUrl != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int index = css.IndexOf("/api/");
|
|
|
|
|
|
|
|
css = css.Insert(index, ombiSettings.BaseUrl);
|
|
|
|
|
|
|
|
}
|
|
|
|
return Content(css, "text/css");
|
|
|
|
return Content(css, "text/css");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|