mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -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)
|
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)
|
foreach (var modelSeasonRequest in model.SeasonRequests)
|
||||||
{
|
{
|
||||||
if (modelSeasonRequest.SeasonNumber == latest.SeasonNumber)
|
if (modelSeasonRequest.SeasonNumber == latest.SeasonNumber)
|
||||||
|
@ -82,7 +82,7 @@ namespace Ombi.Core.Engine
|
||||||
}
|
}
|
||||||
if (tv.FirstSeason)
|
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)
|
foreach (var modelSeasonRequest in model.SeasonRequests)
|
||||||
{
|
{
|
||||||
if (modelSeasonRequest.SeasonNumber == first.SeasonNumber)
|
if (modelSeasonRequest.SeasonNumber == first.SeasonNumber)
|
||||||
|
|
|
@ -17,12 +17,14 @@ namespace Ombi.Store.Context
|
||||||
Database.EnsureCreated();
|
Database.EnsureCreated();
|
||||||
Database.Migrate();
|
Database.Migrate();
|
||||||
|
|
||||||
//#if DEBUG
|
#if DEBUG
|
||||||
// var file = File.ReadAllText();
|
var location = System.Reflection.Assembly.GetEntryAssembly().Location;
|
||||||
//#else
|
var directory = System.IO.Path.GetDirectoryName(location);
|
||||||
|
var file = File.ReadAllText(Path.Combine(directory,"SqlTables.sql"));
|
||||||
|
#else
|
||||||
|
|
||||||
var file = File.ReadAllText("SqlTables.sql");
|
var file = File.ReadAllText("SqlTables.sql");
|
||||||
//#endif
|
#endif
|
||||||
// Run Script
|
// Run Script
|
||||||
|
|
||||||
Database.ExecuteSqlCommand(file, 0);
|
Database.ExecuteSqlCommand(file, 0);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@*<!DOCTYPE html>*@
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<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-flat-top.css',
|
||||||
'./bower_components/PACE/themes/orange/pace-theme-loading-bar.css',
|
'./bower_components/PACE/themes/orange/pace-theme-loading-bar.css',
|
||||||
'./node_modules/primeng/resources/primeng.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/'
|
dest: './css/lib/'
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
export interface ISearchTvResult {
|
export interface ISearchTvResult {
|
||||||
id: number,
|
id: number,
|
||||||
seriesName: string,
|
title: string,
|
||||||
aliases: string[],
|
aliases: string[],
|
||||||
banner: string,
|
banner: string,
|
||||||
seriesId: number,
|
seriesId: number,
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
<!--Child Requests-->
|
<!--Child Requests-->
|
||||||
<div *ngIf="request.hasChildRequests">
|
<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 id="{{request.id}}childRequests" class="collapse">
|
||||||
|
|
||||||
<div *ngFor="let child of request.childRequests">
|
<div *ngFor="let child of request.childRequests">
|
||||||
|
|
|
@ -107,7 +107,7 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
if (this.result.requestAdded) {
|
if (this.result.requestAdded) {
|
||||||
this.notificationService.success("Request Added",
|
this.notificationService.success("Request Added",
|
||||||
`Request for ${searchResult.seriesName} has been added successfully`);
|
`Request for ${searchResult.title} has been added successfully`);
|
||||||
} else {
|
} else {
|
||||||
this.notificationService.warning("Request Added", this.result.message);
|
this.notificationService.warning("Request Added", this.result.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue