mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Small changes
This commit is contained in:
parent
64c5184a59
commit
40fb27ebab
7 changed files with 15 additions and 12 deletions
|
@ -68,7 +68,7 @@ namespace Ombi.Core.Engine
|
|||
|
||||
if (tv.LatestSeason)
|
||||
{
|
||||
var latest = showInfo.Season.OrderBy(x => x).FirstOrDefault();
|
||||
var latest = showInfo.Season.OrderBy(x => x.SeasonNumber).FirstOrDefault();
|
||||
foreach (var modelSeasonRequest in model.SeasonRequests)
|
||||
{
|
||||
if (modelSeasonRequest.SeasonNumber == latest.SeasonNumber)
|
||||
|
@ -82,7 +82,7 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
if (tv.FirstSeason)
|
||||
{
|
||||
var first = showInfo.Season.OrderByDescending(x => x).FirstOrDefault();
|
||||
var first = showInfo.Season.OrderByDescending(x => x.SeasonNumber).FirstOrDefault();
|
||||
foreach (var modelSeasonRequest in model.SeasonRequests)
|
||||
{
|
||||
if (modelSeasonRequest.SeasonNumber == first.SeasonNumber)
|
||||
|
|
|
@ -17,12 +17,14 @@ namespace Ombi.Store.Context
|
|||
Database.EnsureCreated();
|
||||
Database.Migrate();
|
||||
|
||||
//#if DEBUG
|
||||
// var file = File.ReadAllText();
|
||||
//#else
|
||||
|
||||
#if DEBUG
|
||||
var location = System.Reflection.Assembly.GetEntryAssembly().Location;
|
||||
var directory = System.IO.Path.GetDirectoryName(location);
|
||||
var file = File.ReadAllText(Path.Combine(directory,"SqlTables.sql"));
|
||||
#else
|
||||
|
||||
var file = File.ReadAllText("SqlTables.sql");
|
||||
//#endif
|
||||
#endif
|
||||
// Run Script
|
||||
|
||||
Database.ExecuteSqlCommand(file, 0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@*<!DOCTYPE html>*@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
@ -71,7 +71,8 @@ var paths = {
|
|||
'./bower_components/PACE/themes/orange/pace-theme-flat-top.css',
|
||||
'./bower_components/PACE/themes/orange/pace-theme-loading-bar.css',
|
||||
'./node_modules/primeng/resources/primeng.css',
|
||||
'./node_modules/tether/dist/css/tether.css'
|
||||
'./node_modules/tether/dist/css/tether.css',
|
||||
'./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css',
|
||||
],
|
||||
dest: './css/lib/'
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
export interface ISearchTvResult {
|
||||
id: number,
|
||||
seriesName: string,
|
||||
title: string,
|
||||
aliases: string[],
|
||||
banner: string,
|
||||
seriesId: number,
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
<!--Child Requests-->
|
||||
<div *ngIf="request.hasChildRequests">
|
||||
<button type="button" class="btn btn-info" data-toggle="collapse" [attr.data-target]="'#' + request.id +'childRequests'">Children</button>
|
||||
<button type="button" class="btn btn-sm btn-info-outline" data-toggle="collapse" [attr.data-target]="'#' + request.id +'childRequests'">Children</button>
|
||||
<div id="{{request.id}}childRequests" class="collapse">
|
||||
|
||||
<div *ngFor="let child of request.childRequests">
|
||||
|
|
|
@ -107,7 +107,7 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
|||
|
||||
if (this.result.requestAdded) {
|
||||
this.notificationService.success("Request Added",
|
||||
`Request for ${searchResult.seriesName} has been added successfully`);
|
||||
`Request for ${searchResult.title} has been added successfully`);
|
||||
} else {
|
||||
this.notificationService.warning("Request Added", this.result.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue