mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 03:28:28 -07:00
Fixed a issue with the proxy and also fixed build
This commit is contained in:
parent
91e1db06f2
commit
a1e0042966
6 changed files with 33 additions and 7 deletions
|
@ -51,7 +51,9 @@ namespace Ombi.Core.Engine.V2
|
|||
langCode = await DefaultLanguageCode(langCode);
|
||||
var collections = await MovieApi.GetCollection(langCode, collectionId);
|
||||
|
||||
return await ProcessCollection(collections);
|
||||
var c = await ProcessCollection(collections);
|
||||
c.Collection = c.Collection.OrderBy(x => x.ReleaseDate).ToList();
|
||||
return c;
|
||||
}
|
||||
|
||||
public async Task<int> GetTvDbId(int theMovieDbId)
|
||||
|
@ -208,6 +210,7 @@ namespace Ombi.Core.Engine.V2
|
|||
mapped.EmbyUrl = movie.EmbyUrl;
|
||||
mapped.Subscribed = movie.Subscribed;
|
||||
mapped.ShowSubscribe = movie.ShowSubscribe;
|
||||
mapped.ReleaseDate = movie.ReleaseDate;
|
||||
}
|
||||
return viewMovie;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ombi.Store.Entities;
|
||||
|
||||
namespace Ombi.Core.Models.Search.V2
|
||||
|
@ -16,6 +17,7 @@ namespace Ombi.Core.Models.Search.V2
|
|||
public string Overview { get; set; }
|
||||
public string PosterPath { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime ReleaseDate { get; set; }
|
||||
|
||||
|
||||
public override RequestType Type => RequestType.Movie;
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
</mat-form-field>
|
||||
</div>
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button [mat-dialog-close]="selectedRadarrProfile" cdkFocusInitial>Ok</button>
|
||||
<button mat-button [mat-dialog-close]="options" cdkFocusInitial>Ok</button>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<a *ngIf="nav.requiresAdmin && isAdmin || !nav.requiresAdmin" mat-list-item [routerLink]="nav.link"
|
||||
[routerLinkActive]="getTheme()" >
|
||||
<mat-icon aria-label="Side nav toggle icon">{{nav.icon}}</mat-icon>
|
||||
{{nav.name | translate}}
|
||||
{{nav.name | translate}}
|
||||
</a> </span>
|
||||
|
||||
<a class="bottom-nav-link" mat-list-item [routerLinkActive]="theme === 'dark' ? 'active-list-item-dark' : 'active-list-item'" aria-label="Toggle sidenav" (click)="logOut();">
|
||||
|
|
|
@ -38,7 +38,7 @@ export class MyNavComponent implements OnInit {
|
|||
{ name: "NavigationBar.Discover", icon: "find_replace", link: "/discover", requiresAdmin: false },
|
||||
{ name: "NavigationBar.Requests", icon: "list", link: "/requests-list", requiresAdmin: false },
|
||||
{ name: "NavigationBar.UserManagement", icon: "account_circle", link: "/usermanagement", requiresAdmin: true },
|
||||
{ name: "NavigationBar.Calendar", icon: "calendar", link: "/calendar", requiresAdmin: false },
|
||||
{ name: "NavigationBar.Calendar", icon: "calendar_today", link: "/calendar", requiresAdmin: false },
|
||||
{ name: "NavigationBar.Settings", icon: "settings", link: "/Settings/About", requiresAdmin: true },
|
||||
]
|
||||
|
||||
|
|
|
@ -4,10 +4,31 @@
|
|||
<head>
|
||||
<script>
|
||||
// manually sets the <base> tag's href attribute so the app can be located in places other than root
|
||||
debugger;
|
||||
|
||||
var split = location.pathname.split('/');
|
||||
var base = "";
|
||||
var invalidProxies = ['DISCOVER',
|
||||
'REQUESTS-LIST',
|
||||
'DETAILS',
|
||||
'SETTINGS',
|
||||
'ISSUES',
|
||||
'USERMANAGEMENT',
|
||||
'RECENTLYADDED',
|
||||
'DETAILS',
|
||||
'VOTE',
|
||||
'LOGIN',
|
||||
'LANDINGPAGE',
|
||||
'TOKEN',
|
||||
'RESET',
|
||||
'CUSTOM',
|
||||
'AUTH',
|
||||
'WIZARD',
|
||||
"CALENDAR"
|
||||
]
|
||||
for (var i = 0; i < split.length - 1; i++) {
|
||||
if( invalidProxies.indexOf(split[i].toUpperCase()) !== -1) {
|
||||
break;
|
||||
}
|
||||
base += split[i];
|
||||
if(base.length > 1) {
|
||||
break;
|
||||
|
@ -17,7 +38,7 @@
|
|||
}
|
||||
}
|
||||
if(base === "") {
|
||||
base = "./";
|
||||
base = "/";
|
||||
}
|
||||
window['_app_base'] = base;
|
||||
document.write("<base href='" + base + "' />");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue