Merge branch 'develop' into feature/reverse-proxy-chnage

This commit is contained in:
Jamie 2021-02-28 18:17:05 +00:00 committed by GitHub
commit 4035bbeb89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 345 additions and 186 deletions

View file

@ -111,7 +111,8 @@ stages:
$header = @{ $header = @{
"Accept"="application/vnd.github.v3+json" "Accept"="application/vnd.github.v3+json"
"Authorization"="Bearer ${env:APTPAT}" "Authorization"="Bearer $(APTPAT)"
"User-Agent"="Ombi"
} }
Invoke-RestMethod -Uri "https://api.github.com/repos/Ombi-app/Ombi.Apt/actions/workflows/build-deb.yml/dispatches" -Method 'Post' -Body $body -Headers $header Invoke-RestMethod -Uri "https://api.github.com/repos/Ombi-app/Ombi.Apt/actions/workflows/build-deb.yml/dispatches" -Method 'Post' -Body $body -Headers $header

View file

@ -5,6 +5,7 @@ using Ombi.Store.Entities;
using Ombi.Store.Entities.Requests; using Ombi.Store.Entities.Requests;
using Ombi.Store.Repository; using Ombi.Store.Repository;
using Ombi.Store.Repository.Requests; using Ombi.Store.Repository.Requests;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -93,18 +94,27 @@ namespace Ombi.Core.Engine
var issues = _issuesRepository.GetAll().Where(x => x.UserReportedId == userId); var issues = _issuesRepository.GetAll().Where(x => x.UserReportedId == userId);
var issueComments = _issueCommentsRepository.GetAll().Where(x => x.UserId == userId); var issueComments = _issueCommentsRepository.GetAll().Where(x => x.UserId == userId);
var requestLog = _requestLogRepository.GetAll().Where(x => x.UserId == userId); var requestLog = _requestLogRepository.GetAll().Where(x => x.UserId == userId);
if (issueComments.Any())
{
await _issueCommentsRepository.DeleteRange(issueComments);
}
if (issues.Any()) if (issues.Any())
{ {
var extraComments = new List<IssueComments>();
var issueIds = issues.Select(x => x.Id).Distinct();
foreach (var issue in issueIds)
{
// Get all the comments for this issue and delete them, since the issue will be deleted
var extra = _issueCommentsRepository.GetAll().Where(x => x.IssuesId == issue);
extraComments.AddRange(extra.ToList());
}
await _issuesRepository.DeleteRange(issues); await _issuesRepository.DeleteRange(issues);
} }
if (requestLog.Any()) if (requestLog.Any())
{ {
await _requestLogRepository.DeleteRange(requestLog); await _requestLogRepository.DeleteRange(requestLog);
} }
if (issueComments.Any())
{
await _issueCommentsRepository.DeleteRange(issueComments);
}
// Delete the Subscriptions and mobile notification ids // Delete the Subscriptions and mobile notification ids
var subs = _requestSubscriptionRepository.GetAll().Where(x => x.UserId == userId); var subs = _requestSubscriptionRepository.GetAll().Where(x => x.UserId == userId);

View file

@ -36,5 +36,7 @@ namespace Ombi.Core.Models.UI
{ {
public string Id { get; set; } public string Id { get; set; }
public string Username { get; set; } public string Username { get; set; }
public string Email { get; set; }
} }
} }

View file

@ -124,5 +124,8 @@
} }
} }
}, },
"defaultProject": "ombi" "defaultProject": "ombi",
"cli": {
"analytics": false
}
} }

View file

@ -10,7 +10,6 @@ import { SettingsService } from "./services";
import { MatSnackBar } from '@angular/material/snack-bar'; import { MatSnackBar } from '@angular/material/snack-bar';
import { ICustomizationSettings, ICustomPage } from "./interfaces"; import { ICustomizationSettings, ICustomPage } from "./interfaces";
import { StorageService } from './shared/storage/storage-service';
import { SignalRNotificationService } from './services/signlarnotification.service'; import { SignalRNotificationService } from './services/signlarnotification.service';
import { DOCUMENT } from '@angular/common'; import { DOCUMENT } from '@angular/common';
@ -46,7 +45,6 @@ export class AppComponent implements OnInit {
public readonly translate: TranslateService, public readonly translate: TranslateService,
private readonly customPageService: CustomPageService, private readonly customPageService: CustomPageService,
public overlayContainer: OverlayContainer, public overlayContainer: OverlayContainer,
private storage: StorageService,
private signalrNotification: SignalRNotificationService, private signalrNotification: SignalRNotificationService,
private readonly snackBar: MatSnackBar, private readonly snackBar: MatSnackBar,
private readonly identity: IdentityService, private readonly identity: IdentityService,

View file

@ -28,6 +28,7 @@ export interface IUser {
export interface IUserDropdown { export interface IUserDropdown {
username: string; username: string;
id: string; id: string;
email: string;
} }
export interface IUserQualityProfiles { export interface IUserQualityProfiles {

View file

@ -6,7 +6,8 @@
<div *ngIf="form && customizationSettings && authenticationSettings"> <div *ngIf="form && customizationSettings && authenticationSettings">
<mat-card class="mat-elevation-z8 top-margin login-card"> <mat-card class="mat-elevation-z8 top-margin login-card">
<H1 *ngIf="!customizationSettings.logo" class="login_logo">OMBI</H1> <H1 *ngIf="!customizationSettings.logo && !customizationSettings.applicationName" class="login_logo">OMBI</H1>
<H1 *ngIf="customizationSettings.applicationName && !customizationSettings.logo" class="login_logo custom">{{customizationSettings.applicationName}}</H1>
<img mat-card-image *ngIf="customizationSettings.logo" [src]="customizationSettings.logo"> <img mat-card-image *ngIf="customizationSettings.logo" [src]="customizationSettings.logo">
<mat-card-content id="login-box" *ngIf="!authenticationSettings.enableOAuth || loginWithOmbi"> <mat-card-content id="login-box" *ngIf="!authenticationSettings.enableOAuth || loginWithOmbi">
<form *ngIf="authenticationSettings" class="form-signin" novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)"> <form *ngIf="authenticationSettings" class="form-signin" novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">

View file

@ -203,6 +203,9 @@ div.bg {
justify-content: center; justify-content: center;
font-weight: 700; font-weight: 700;
font-size: 10em; font-size: 10em;
&.custom {
font-size: 5em;
}
width:100%; width:100%;
margin-bottom:70px; margin-bottom:70px;
} }

View file

@ -91,7 +91,7 @@
</button> </button>
</span> </span>
<button mat-raised-button class="btn-spacing" color="danger" (click)="issue()"> <button mat-raised-button class="btn-spacing" color="danger" (click)="issue()" *ngIf="issuesEnabled">
<i class="fas fa-exclamation"></i> {{'Requests.ReportIssue' | translate }} <i class="fas fa-exclamation"></i> {{'Requests.ReportIssue' | translate }}
</button> </button>
<button *ngIf="movie.belongsToCollection" [routerLink]="'/discover/collection/' + movie.belongsToCollection.id" mat-raised-button class="btn-spacing"> <button *ngIf="movie.belongsToCollection" [routerLink]="'/discover/collection/' + movie.belongsToCollection.id" mat-raised-button class="btn-spacing">

View file

@ -1,5 +1,5 @@
import { AfterViewInit, Component, ViewChild, ViewEncapsulation } from "@angular/core"; import { AfterViewInit, Component, ViewChild, ViewEncapsulation } from "@angular/core";
import { ImageService, SearchV2Service, RequestService, MessageService, RadarrService } from "../../../services"; import { ImageService, SearchV2Service, RequestService, MessageService, RadarrService, SettingsStateService } from "../../../services";
import { ActivatedRoute } from "@angular/router"; import { ActivatedRoute } from "@angular/router";
import { DomSanitizer } from "@angular/platform-browser"; import { DomSanitizer } from "@angular/platform-browser";
import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2"; import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
@ -26,6 +26,7 @@ export class MovieDetailsComponent {
public isAdmin: boolean; public isAdmin: boolean;
public advancedOptions: IAdvancedData; public advancedOptions: IAdvancedData;
public showAdvanced: boolean; // Set on the UI public showAdvanced: boolean; // Set on the UI
public issuesEnabled: boolean;
public requestType = RequestType.movie; public requestType = RequestType.movie;
@ -37,7 +38,7 @@ export class MovieDetailsComponent {
private sanitizer: DomSanitizer, private imageService: ImageService, private sanitizer: DomSanitizer, private imageService: ImageService,
public dialog: MatDialog, private requestService: RequestService, public dialog: MatDialog, private requestService: RequestService,
private requestService2: RequestServiceV2, private radarrService: RadarrService, private requestService2: RequestServiceV2, private radarrService: RadarrService,
public messageService: MessageService, private auth: AuthService) { public messageService: MessageService, private auth: AuthService, private settingsState: SettingsStateService) {
this.route.params.subscribe(async (params: any) => { this.route.params.subscribe(async (params: any) => {
if (typeof params.movieDbId === 'string' || params.movieDbId instanceof String) { if (typeof params.movieDbId === 'string' || params.movieDbId instanceof String) {
if (params.movieDbId.startsWith("tt")) { if (params.movieDbId.startsWith("tt")) {
@ -51,6 +52,7 @@ export class MovieDetailsComponent {
public async load() { public async load() {
this.issuesEnabled = this.settingsState.getIssue();
this.isAdmin = this.auth.hasRole("admin") || this.auth.hasRole("poweruser"); this.isAdmin = this.auth.hasRole("admin") || this.auth.hasRole("poweruser");
if (this.isAdmin) { if (this.isAdmin) {
@ -188,7 +190,6 @@ export class MovieDetailsComponent {
const folders = this.radarrService.getRootFoldersFromSettings(); const folders = this.radarrService.getRootFoldersFromSettings();
forkJoin([profile, folders]).subscribe(x => { forkJoin([profile, folders]).subscribe(x => {
debugger;
const radarrProfiles = x[0]; const radarrProfiles = x[0];
const radarrRootFolders = x[1]; const radarrRootFolders = x[1];

View file

@ -2,7 +2,7 @@
Advanced Options</h1> Advanced Options</h1>
<div mat-dialog-content> <div mat-dialog-content>
<mat-form-field> <mat-form-field appearance="outline" floatLabel=auto>
<mat-label>{{'MediaDetails.QualityProfilesSelect' | translate }}</mat-label> <mat-label>{{'MediaDetails.QualityProfilesSelect' | translate }}</mat-label>
<mat-select [(value)]="data.profileId"> <mat-select [(value)]="data.profileId">
<mat-option *ngFor="let profile of radarrProfiles" value="{{profile.id}}">{{profile.name}}</mat-option> <mat-option *ngFor="let profile of radarrProfiles" value="{{profile.id}}">{{profile.name}}</mat-option>
@ -10,7 +10,7 @@
</mat-form-field> </mat-form-field>
</div> </div>
<div mat-dialog-content> <div mat-dialog-content>
<mat-form-field> <mat-form-field appearance="outline" floatLabel=auto>
<mat-label>{{'MediaDetails.RootFolderSelect' | translate }}</mat-label> <mat-label>{{'MediaDetails.RootFolderSelect' | translate }}</mat-label>
<mat-select [(value)]="data.rootFolderId"> <mat-select [(value)]="data.rootFolderId">
<mat-option *ngFor="let profile of radarrRootFolders" value="{{profile.id}}">{{profile.path}}</mat-option> <mat-option *ngFor="let profile of radarrRootFolders" value="{{profile.id}}">{{profile.path}}</mat-option>

View file

@ -1,22 +1,23 @@
<h1 mat-dialog-title>{{ 'MediaDetails.RequestOnBehalf' | translate}}</h1> <h1 mat-dialog-title>{{ 'MediaDetails.RequestOnBehalf' | translate}}</h1>
<div mat-dialog-content> <div mat-dialog-content>
<form class="example-form"> <form class="example-form">
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width" appearance="outline" floatLabel=auto>
<mat-label>{{ 'MediaDetails.PleaseSelectUser' | translate}}</mat-label>
<input type="text" <input type="text"
placeholder="{{ 'MediaDetails.PleaseSelectUser' | translate}}"
aria-label="Number" aria-label="Number"
matInput matInput
[formControl]="myControl" [formControl]="myControl"
[matAutocomplete]="auto"> [matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn"> <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn">
<mat-option *ngFor="let option of filteredOptions | async" [value]="option"> <mat-option *ngFor="let option of filteredOptions | async" [value]="option">
{{option.username}} {{displayFn(option)}}
</mat-option> </mat-option>
</mat-autocomplete> </mat-autocomplete>
</mat-form-field> </mat-form-field>
</form> </form>
</div> </div>
<div mat-dialog-actions> <div mat-dialog-actions>
<button mat-raised-button (click)="onNoClick()"> Cancel</button> <button mat-raised-button (click)="onNoClick()">{{'Common.Cancel' | translate}}</button>
<button mat-raised-button (click)="request()" color="accent" [mat-dialog-close]="userId" cdkFocusInitial>{{'Common.Request' | translate}}</button> <button mat-raised-button (click)="request()" color="accent" [mat-dialog-close]="userId" cdkFocusInitial>{{'Common.Request' | translate}}</button>
</div> </div>

View file

@ -41,7 +41,9 @@ export class RequestBehalfComponent implements OnInit {
} }
public displayFn(user: IUserDropdown): string { public displayFn(user: IUserDropdown): string {
return user?.username ? user.username : ''; const username = user?.username ? user.username : '';
const email = user?.email ? `(${user.email})` : '';
return `${username} ${email}`;
} }
private _filter(value: string|IUserDropdown): IUserDropdown[] { private _filter(value: string|IUserDropdown): IUserDropdown[] {

View file

@ -1,63 +1,68 @@
<div> <div class="left-panel-details">
<span *ngIf="tv.rating"> <div>
<img style="width: 4em;" src="{{baseUrl}}/images/tvm-logo.png"> {{tv.rating}}/10 <div class="rating medium-font">
</span> <span *ngIf="tv.rating">
<span *ngIf="ratings?.score && ratings?.class"> <img class="rating-small" src="{{baseUrl}}/images/tvm-logo.png"> {{tv.rating}}/10
<img class="rating-small" src="{{baseUrl}}/images/{{ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}"> {{ratings.score}}% </span>
</span> <span *ngIf="ratings?.score && ratings?.class">
<img class="rating-small" src="{{baseUrl}}/images/{{ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}"> {{ratings.score}}%
<div *ngIf="streams?.length > 0"> </span>
</div>
<div *ngIf="streams?.length > 0" class="streaming-on-container">
<hr>
<div class="streaming-on-content">
<span class="label">{{'MediaDetails.StreamingOn' | translate }}:</span>
<div>
<span *ngFor="let stream of streams">
<img class="stream-small" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}">
</span>
</div>
</div>
</div>
<hr> <hr>
<strong>{{'MediaDetails.StreamingOn' | translate }}:</strong> <div *ngIf="tv.status">
<span class="label">{{'MediaDetails.Status' | translate }}:</span>
{{tv.status}}
</div>
<span class="label">First Aired:</span>
{{tv.firstAired | date: 'mediumDate'}}
</div>
<div *ngIf="seasonCount">
<span class="label">Seasons:</span>
{{seasonCount}}
</div>
<div *ngIf="totalEpisodes">
<span class="label">Episodes:</span>
{{totalEpisodes}}
</div>
<div *ngIf="advancedOptions && request?.rootPathOverrideTitle">
<span class="label">{{'MediaDetails.RootFolderOverride' | translate }}:</span>
<div>{{request.rootPathOverrideTitle}}</div>
</div>
<div *ngIf="advancedOptions && request?.qualityOverrideTitle">
<span class="label">{{'MediaDetails.QualityOverride' | translate }}:</span>
<div>{{request.qualityOverrideTitle}}</div>
</div>
<div>
<span class="label">{{'MediaDetails.Runtime' | translate }}:</span>
{{'MediaDetails.Minutes' | translate:{ runtime: tv.runtime} }}
</div>
<div *ngIf="tv.network">
<span class="label">Network:</span>
{{tv.network.name}}
</div>
<div *ngIf="tv.genre">
<span class="label">{{'MediaDetails.Genres' | translate }}:</span>
<div> <div>
<span *ngFor="let stream of streams"> <span *ngFor="let genre of tv.genre">
<img class="stream-small" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}"> {{genre}} |
</span> </span>
</div> </div>
</div> </div>
<hr>
<div *ngIf="tv.status">
<strong>{{'MediaDetails.Status' | translate }}:</strong>
{{tv.status}}
</div>
<strong>First Aired:</strong>
{{tv.firstAired | date: 'mediumDate'}}
</div>
<div *ngIf="seasonCount">
<strong>Seasons:</strong>
{{seasonCount}}
</div>
<div *ngIf="totalEpisodes">
<strong>Episodes:</strong>
{{totalEpisodes}}
</div>
<div *ngIf="advancedOptions && request?.rootPathOverrideTitle">
<strong>{{'MediaDetails.RootFolderOverride' | translate }}:</strong>
<div>{{request.rootPathOverrideTitle}}</div>
</div>
<div *ngIf="advancedOptions && request?.qualityOverrideTitle">
<strong>{{'MediaDetails.QualityOverride' | translate }}:</strong>
<div>{{request.qualityOverrideTitle}}</div>
</div>
<div>
<strong>{{'MediaDetails.Runtime' | translate }}:</strong>
{{'MediaDetails.Minutes' | translate:{ runtime: tv.runtime} }}
</div>
<div *ngIf="tv.network">
<strong>Network:</strong>
{{tv.network.name}}
</div>
<div *ngIf="tv.genre">
<strong>{{'MediaDetails.Genres' | translate }}:</strong>
<div>
<span *ngFor="let genre of tv.genre">
{{genre}} |
</span>
</div>
</div> </div>

View file

@ -57,7 +57,7 @@
class="btn-spacing" color="accent" [disabled]> class="btn-spacing" color="accent" [disabled]>
<i class="fas fa-check"></i> {{'Common.PartiallyAvailable' | translate }}</button> <i class="fas fa-check"></i> {{'Common.PartiallyAvailable' | translate }}</button>
<button mat-raised-button class="btn-spacing" color="danger" (click)="issue()"> <button mat-raised-button class="btn-spacing" color="danger" *ngIf="issuesEnabled" (click)="issue()">
<i class="fas fa-exclamation"></i> {{ <i class="fas fa-exclamation"></i> {{
'Requests.ReportIssue' | translate }}</button> 'Requests.ReportIssue' | translate }}</button>
@ -67,8 +67,8 @@
<div class="row"> <div class="row">
<div class="col-12 col-md-2"> <div class="col-12 col-md-2">
<mat-card class="mat-elevation-z8"> <mat-card class="mat-elevation-z8 spacing-below">
<mat-card-content class="medium-font"> <mat-card-content>
<tv-information-panel [tv]="tv" [request]="showRequest" <tv-information-panel [tv]="tv" [request]="showRequest"
[advancedOptions]="showAdvanced"></tv-information-panel> [advancedOptions]="showAdvanced"></tv-information-panel>
</mat-card-content> </mat-card-content>

View file

@ -1,5 +1,5 @@
import { Component, ViewEncapsulation, OnInit } from "@angular/core"; import { Component, ViewEncapsulation, OnInit } from "@angular/core";
import { ImageService, SearchV2Service, MessageService, RequestService, SonarrService } from "../../../services"; import { ImageService, SearchV2Service, MessageService, RequestService, SonarrService, SettingsStateService } from "../../../services";
import { ActivatedRoute } from "@angular/router"; import { ActivatedRoute } from "@angular/router";
import { DomSanitizer } from "@angular/platform-browser"; import { DomSanitizer } from "@angular/platform-browser";
import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2"; import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2";
@ -29,6 +29,7 @@ export class TvDetailsComponent implements OnInit {
public advancedOptions: IAdvancedData; public advancedOptions: IAdvancedData;
public showAdvanced: boolean; // Set on the UI public showAdvanced: boolean; // Set on the UI
public requestType = RequestType.tvShow; public requestType = RequestType.tvShow;
public issuesEnabled: boolean;
private tvdbId: number; private tvdbId: number;
@ -36,7 +37,7 @@ export class TvDetailsComponent implements OnInit {
private sanitizer: DomSanitizer, private imageService: ImageService, private sanitizer: DomSanitizer, private imageService: ImageService,
public dialog: MatDialog, public messageService: MessageService, private requestService: RequestService, public dialog: MatDialog, public messageService: MessageService, private requestService: RequestService,
private requestService2: RequestServiceV2, private requestService2: RequestServiceV2,
private auth: AuthService, private sonarrService: SonarrService) { private auth: AuthService, private sonarrService: SonarrService, private settingsState: SettingsStateService) {
this.route.params.subscribe((params: any) => { this.route.params.subscribe((params: any) => {
this.tvdbId = params.tvdbId; this.tvdbId = params.tvdbId;
this.fromSearch = params.search; this.fromSearch = params.search;
@ -49,6 +50,7 @@ export class TvDetailsComponent implements OnInit {
public async load() { public async load() {
this.issuesEnabled = this.settingsState.getIssue();
this.isAdmin = this.auth.hasRole("admin") || this.auth.hasRole("poweruser"); this.isAdmin = this.auth.hasRole("admin") || this.auth.hasRole("poweruser");
if (this.isAdmin) { if (this.isAdmin) {

View file

@ -288,6 +288,18 @@
font-weight:500; font-weight:500;
} }
.left-panel-details .streaming-on-content{
display:flex;
justify-content: center;
align-items: center;
flex-flow:row wrap;
}
.left-panel-details .streaming-on-content .label{
white-space:nowrap;
padding-right:10px;
}
.left-panel-details{ .left-panel-details{
font-weight:100; font-weight:100;
} }
@ -314,6 +326,7 @@
padding:2px 1.5em;; padding:2px 1.5em;;
width:170px; width:170px;
margin-top:10px; margin-top:10px;
margin-left:10px;
} }
@media (max-width:500px){ @media (max-width:500px){
@ -330,6 +343,7 @@
.media-row .mat-raised-button{ .media-row .mat-raised-button{
width:100%; width:100%;
margin-left:0px;
} }
.media-row .btn-spacing{ .media-row .btn-spacing{

View file

@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators'; import { map } from 'rxjs/operators';
import { INavBar } from '../interfaces/ICommon'; import { INavBar } from '../interfaces/ICommon';
import { StorageService } from '../shared/storage/storage-service'; import { StorageService } from '../shared/storage/storage-service';
import { SettingsService } from '../services'; import { SettingsService, SettingsStateService } from '../services';
import { MatSlideToggleChange } from '@angular/material/slide-toggle'; import { MatSlideToggleChange } from '@angular/material/slide-toggle';
import { SearchFilter } from './SearchFilter'; import { SearchFilter } from './SearchFilter';
import { Md5 } from 'ts-md5/dist/md5'; import { Md5 } from 'ts-md5/dist/md5';
@ -49,7 +49,8 @@ export class MyNavComponent implements OnInit {
constructor(private breakpointObserver: BreakpointObserver, constructor(private breakpointObserver: BreakpointObserver,
private settingsService: SettingsService, private settingsService: SettingsService,
private store: StorageService, private store: StorageService,
private filterService: FilterService) { private filterService: FilterService,
private readonly settingState: SettingsStateService) {
} }
public async ngOnInit() { public async ngOnInit() {
@ -68,6 +69,8 @@ export class MyNavComponent implements OnInit {
} }
this.issuesEnabled = await this.settingsService.issueEnabled().toPromise(); this.issuesEnabled = await this.settingsService.issueEnabled().toPromise();
this.settingState.setIssue(this.issuesEnabled);
const customizationSettings = await this.settingsService.getCustomization().toPromise(); const customizationSettings = await this.settingsService.getCustomization().toPromise();
console.log("issues enabled: " + this.issuesEnabled); console.log("issues enabled: " + this.issuesEnabled);
this.theme = this.store.get("theme"); this.theme = this.store.get("theme");

View file

@ -14,18 +14,18 @@ export class FileDownloadService extends ServiceHelpers {
downloadFile(url: string, contentType: string): void { downloadFile(url: string, contentType: string): void {
this.http.get(url).subscribe((response: any) => { this.http.get(url).subscribe((response: any) => {
// It is necessary to create a new blob object with mime-type explicitly set // It is necessary to create a new blob object with mime-type explicitly set
// otherwise only Chrome works like it should // otherwise only Chrome works like it should
const newBlob = new Blob([(response)], { type: contentType }); const newBlob = new Blob([(response)], { type: contentType });
// IE doesn't allow using a blob object directly as link href // IE doesn't allow using a blob object directly as link href
// instead it is necessary to use msSaveOrOpenBlob // instead it is necessary to use msSaveOrOpenBlob
if (window.navigator && window.navigator.msSaveOrOpenBlob) { if (window.navigator && window.navigator.msSaveOrOpenBlob) {
window.navigator.msSaveOrOpenBlob(newBlob); window.navigator.msSaveOrOpenBlob(newBlob);
return; return;
} }
// For other browsers: // For other browsers:
// Create a link pointing to the ObjectURL containing the blob. // Create a link pointing to the ObjectURL containing the blob.
const downloadURL = URL.createObjectURL(response); const downloadURL = URL.createObjectURL(response);

View file

@ -22,3 +22,4 @@ export * from "./message.service";
export * from "./hub.service"; export * from "./hub.service";
export * from "./system.service"; export * from "./system.service";
export * from "./filedownload.service"; export * from "./filedownload.service";
export * from "./settingsState.service";

View file

@ -16,6 +16,6 @@ export class RequestRetryService extends ServiceHelpers {
return this.http.get<IFailedRequestsViewModel[]>(this.url, {headers: this.headers}); return this.http.get<IFailedRequestsViewModel[]>(this.url, {headers: this.headers});
} }
public deleteFailedRequest(failedId: number): Observable<boolean> { public deleteFailedRequest(failedId: number): Observable<boolean> {
return this.http.delete<boolean>(`${this.url}/${failedId}`, {headers: this.headers}); return this.http.delete<boolean>(`${this.url}${failedId}`, {headers: this.headers});
} }
} }

View file

@ -0,0 +1,17 @@
import { Injectable } from "@angular/core";
@Injectable({
providedIn: 'root',
})
export class SettingsStateService {
private issuesEnabled: boolean;
public getIssue(): boolean {
return this.issuesEnabled;
}
public setIssue(settings: boolean): void {
this.issuesEnabled = settings;
}
}

View file

@ -109,7 +109,7 @@ export class LidarrComponent implements OnInit {
this.testerService.lidarrTest(settings).subscribe(result => { this.testerService.lidarrTest(settings).subscribe(result => {
if (result.isValid) { if (result.isValid) {
this.notificationService.success("Successfully connected to Lidarr!"); this.notificationService.success("Successfully connected to Lidarr!");
} else if (result.expectedSubDir !== null) { } else if (result.expectedSubDir) {
this.notificationService.error("Your Lidarr Base URL must be set to " + result.expectedSubDir); this.notificationService.error("Your Lidarr Base URL must be set to " + result.expectedSubDir);
} else { } else {
this.notificationService.error("We could not connect to Lidarr!"); this.notificationService.error("We could not connect to Lidarr!");

View file

@ -1,6 +1,6 @@
<settings-menu> <settings-menu>
</settings-menu> </settings-menu>
<div *ngIf="form" class="container"> <div *ngIf="form" class="small-middle-container">
<fieldset> <fieldset>
<legend>Mobile Notifications</legend> <legend>Mobile Notifications</legend>
@ -47,7 +47,7 @@
<div class="md-form-field "> <div class="md-form-field ">
<div> <div>
<button mat-raised-button type="submit " color="primary" [disabled]="form.invalid ">Submit</button> <button mat-raised-button type="submit " color="accent" [disabled]="form.invalid ">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -11,6 +11,7 @@ import { MatTableDataSource } from "@angular/material/table";
@Component({ @Component({
templateUrl: "./cloudmobile.component.html", templateUrl: "./cloudmobile.component.html",
styleUrls: ["./notificationtemplate.component.scss"]
}) })
export class CloudMobileComponent implements OnInit { export class CloudMobileComponent implements OnInit {

View file

@ -42,7 +42,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -53,7 +53,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -47,7 +47,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -58,7 +58,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -3,71 +3,73 @@
<div *ngIf="form" class="small-middle-container"> <div *ngIf="form" class="small-middle-container">
<fieldset> <fieldset>
<legend>Legacy Mobile Notifications</legend> <legend>Legacy Mobile Notifications</legend>
<div class="col-md-6"> <div class="lmobile-container">
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)"> <div class="col-md-6">
<div class="row"> <form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
<div *ngIf="userList" class="col-md-8"> <div class="row">
<table class="table table-striped table-hover table-responsive table-condensed"> <div *ngIf="userList" class="col-md-8">
<thead> <table class="table table-striped table-hover table-responsive table-condensed">
<tr> <thead>
<th> <tr>
<a>Username/Alias</a> <th>
</th> <a>Username/Alias</a>
<th> </th>
<a>Mobile Devices Registered</a> <th>
</th> <a>Mobile Devices Registered</a>
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let user of userList"> <tr *ngFor="let user of userList">
<td> <td>
{{user.username}} {{user.username}}
</td> </td>
<td> <td>
{{user.devices}} {{user.devices}}
</td> </td>
</tbody> </tbody>
</table> </table>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="select" class="control-label">Users</label>
<div>
<select class="form-control form-control-custom" id="select" [(ngModel)]="testUserId" [ngModelOptions]="{standalone: true}">
<option value="">Please select</option>
<option *ngFor="let x of userList" [value]="x.userId">{{x.username}}</option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="row lmobile-actions">
<div> <div class="form-group">
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-danger-outline">Send Test Notification</button> <label for="select" class="control-label">Users</label>
</div> <div>
</div> <select class="form-control form-control-custom" id="select" [(ngModel)]="testUserId" [ngModelOptions]="{standalone: true}">
<div class="form-group"> <option value="">Please select</option>
<div> <option *ngFor="let x of userList" [value]="x.userId">{{x.username}}</option>
<button [disabled]="form.invalid" type="button" (click)="remove(form)" class="btn btn-danger-outline">Remove User</button> </select>
</div>
</div>
<div class="form-group">
<div>
<button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-danger-outline">Send Test Notification</button>
</div>
</div>
<div class="form-group">
<div>
<button [disabled]="form.invalid" mat-raised-button type="button" (click)="remove(form)" class="btn btn-danger-outline">Remove User</button>
</div>
</div>
<div class="form-group">
<div>
<button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div>
</div> </div>
</div> </div>
</form>
</div>
<div class="form-group"> <div class="col-md-6 issue-content">
<div> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> </div>
</div>
</div>
</div>
</form>
</div>
<div class="col-md-6">
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

View file

@ -1,15 +1,30 @@
@import "~styles/shared.scss"; @import "~styles/shared.scss";
::ng-deep ngb-accordion > div.card {
color:white;
padding-top: 0px;
}
::ng-deep ngb-accordion > div.card > div.card-header {
padding:0px;
}
.small-middle-container{ .small-middle-container{
margin: auto; margin: auto;
width: 95%; width: 95%;
margin-top:10px; margin-top:10px;
}
.lmobile-actions{
display:flex;
justify-content: left;
align-items:flex-end;
}
.lmobile-actions .form-group{
margin-right:10px;
}
.lmobile-container{
display:flex;
margin-top:10px;
}
.issue-content{
justify-content: flex-end;
}
.mat-raised-button{
margin-right:10px;
} }

View file

@ -32,7 +32,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -43,7 +43,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -74,7 +74,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -85,7 +85,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -57,7 +57,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -68,7 +68,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -43,7 +43,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -52,7 +52,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -31,7 +31,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> <button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)" class="btn btn-primary-outline">
Test Test
<div id="spinner"></div> <div id="spinner"></div>
</button> </button>
@ -40,7 +40,7 @@
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" mat-raised-button type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div> </div>
</div> </div>
</form> </form>

View file

@ -99,7 +99,7 @@ export class RadarrComponent implements OnInit {
this.testerService.radarrTest(settings).subscribe(result => { this.testerService.radarrTest(settings).subscribe(result => {
if (result.isValid) { if (result.isValid) {
this.notificationService.success("Successfully connected to Radarr!"); this.notificationService.success("Successfully connected to Radarr!");
} else if (result.expectedSubDir !== null) { } else if (result.expectedSubDir) {
this.notificationService.error("Your Radarr Base URL must be set to " + result.expectedSubDir); this.notificationService.error("Your Radarr Base URL must be set to " + result.expectedSubDir);
} else { } else {
this.notificationService.error("We could not connect to Radarr!"); this.notificationService.error("We could not connect to Radarr!");

View file

@ -153,7 +153,7 @@ export class SonarrComponent implements OnInit {
this.testerService.sonarrTest(settings).subscribe(result => { this.testerService.sonarrTest(settings).subscribe(result => {
if (result.isValid) { if (result.isValid) {
this.notificationService.success("Successfully connected to Sonarr!"); this.notificationService.success("Successfully connected to Sonarr!");
} else if (result.expectedSubDir !== null) { } else if (result.expectedSubDir) {
this.notificationService.error("Your Sonarr Base URL must be set to " + result.expectedSubDir); this.notificationService.error("Your Sonarr Base URL must be set to " + result.expectedSubDir);
} else { } else {
this.notificationService.error("We could not connect to Sonarr!"); this.notificationService.error("We could not connect to Sonarr!");

File diff suppressed because one or more lines are too long

View file

@ -145,3 +145,15 @@
hr{ hr{
border-top: 1px solid $ombi-background-primary; border-top: 1px solid $ombi-background-primary;
} }
.form-control{
background-color: $ombi-background-accent;
color:#FFF;
border: 1px solid $ombi-background-accent;
}
.form-control:focus{
background-color: $ombi-background-accent;
color:#FFF;
border: 1px solid $ombi-active;
}

View file

@ -27,7 +27,8 @@ td.mat-cell {
.mat-dialog-container, .mat-dialog-container,
.mat-menu-content, .mat-menu-content,
.mat-table, .mat-table,
.mat-paginator { .mat-paginator,
.mat-select-panel {
background: $ombi-background-accent; background: $ombi-background-accent;
} }

View file

@ -374,7 +374,7 @@ namespace Ombi.Controllers.V1.External
var result = await RadarrApi.SystemStatus(settings.ApiKey, settings.FullUri); var result = await RadarrApi.SystemStatus(settings.ApiKey, settings.FullUri);
return new TesterResultModel return new TesterResultModel
{ {
IsValid = result.urlBase == settings.SubDir, IsValid = result.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
ExpectedSubDir = result.urlBase ExpectedSubDir = result.urlBase
}; };
} }
@ -399,7 +399,7 @@ namespace Ombi.Controllers.V1.External
var result = await SonarrApi.SystemStatus(settings.ApiKey, settings.FullUri); var result = await SonarrApi.SystemStatus(settings.ApiKey, settings.FullUri);
return new TesterResultModel return new TesterResultModel
{ {
IsValid = result.urlBase == settings.SubDir, IsValid = result.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
ExpectedSubDir = result.urlBase ExpectedSubDir = result.urlBase
}; };
} }
@ -513,7 +513,7 @@ namespace Ombi.Controllers.V1.External
var status = await LidarrApi.Status(settings.ApiKey, settings.FullUri); var status = await LidarrApi.Status(settings.ApiKey, settings.FullUri);
return new TesterResultModel return new TesterResultModel
{ {
IsValid = status?.urlBase == settings.SubDir, IsValid = status?.urlBase == settings.SubDir || string.IsNullOrEmpty(status.urlBase) && string.IsNullOrEmpty(settings.SubDir),
ExpectedSubDir = status?.urlBase ExpectedSubDir = status?.urlBase
}; };
} }

View file

@ -299,7 +299,8 @@ namespace Ombi.Controllers.V1
model.Add(new UserViewModelDropdown model.Add(new UserViewModelDropdown
{ {
Id = user.Id, Id = user.Id,
Username = user.UserName Username = user.UserName,
Email = user.Email
}); });
} }

View file

@ -203,7 +203,7 @@ namespace Ombi.Controllers.V1
var item = rand.Next(moviesArray.Length); var item = rand.Next(moviesArray.Length);
var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1)); var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1));
while (!result.moviebackground.Any()) while (!result.moviebackground?.Any() ?? true)
{ {
item = rand.Next(moviesArray.Length); item = rand.Next(moviesArray.Length);
result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1)); result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1));
@ -220,7 +220,7 @@ namespace Ombi.Controllers.V1
var item = rand.Next(tvArray.Length); var item = rand.Next(tvArray.Length);
var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1)); var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1));
while (!result.showbackground.Any()) while (!result.showbackground?.Any() ?? true)
{ {
item = rand.Next(tvArray.Length); item = rand.Next(tvArray.Length);
result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1)); result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1));

View file

@ -4,6 +4,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Ombi.Api.Emby; using Ombi.Api.Emby;
using Ombi.Api.Jellyfin;
using Ombi.Api.Plex; using Ombi.Api.Plex;
using Ombi.Core.Settings; using Ombi.Core.Settings;
using Ombi.Core.Settings.Models.External; using Ombi.Core.Settings.Models.External;
@ -18,19 +19,22 @@ namespace Ombi.Controllers.V1
public class LandingPageController : ControllerBase public class LandingPageController : ControllerBase
{ {
public LandingPageController(ISettingsService<PlexSettings> plex, ISettingsService<EmbySettings> emby, public LandingPageController(ISettingsService<PlexSettings> plex, ISettingsService<EmbySettings> emby,
IPlexApi plexApi, IEmbyApiFactory embyApi) IPlexApi plexApi, IEmbyApiFactory embyApi, ISettingsService<JellyfinSettings> jellyfin, IJellyfinApi jellyfinApi)
{ {
_plexSettings = plex; _plexSettings = plex;
_embySettings = emby; _embySettings = emby;
_plexApi = plexApi; _plexApi = plexApi;
_embyApi = embyApi; _embyApi = embyApi;
_jellyfin = jellyfin;
_jellyfinApi = jellyfinApi;
} }
private readonly IPlexApi _plexApi; private readonly IPlexApi _plexApi;
private readonly IEmbyApiFactory _embyApi; private readonly IEmbyApiFactory _embyApi;
private readonly ISettingsService<PlexSettings> _plexSettings; private readonly ISettingsService<PlexSettings> _plexSettings;
private readonly ISettingsService<EmbySettings> _embySettings; private readonly ISettingsService<EmbySettings> _embySettings;
private readonly ISettingsService<JellyfinSettings> _jellyfin;
private readonly IJellyfinApi _jellyfinApi;
[HttpGet] [HttpGet]
public async Task<MediaSeverAvailibilityViewModel> GetMediaServerStatus() public async Task<MediaSeverAvailibilityViewModel> GetMediaServerStatus()
@ -86,6 +90,31 @@ namespace Ombi.Controllers.V1
} }
} }
} }
var jellyfin = await _jellyfin.GetSettingsAsync();
if (jellyfin.Enable)
{
foreach (var server in jellyfin.Servers)
{
try
{
var result = await _jellyfinApi.GetUsers(server.FullUri, server.ApiKey);
if (result.Any())
{
model.ServersAvailable++;
}
else
{
model.ServersUnavailable++;
}
}
catch (Exception)
{
model.ServersUnavailable++;
}
}
}
return model; return model;
} }
} }

View file

@ -146,7 +146,7 @@ namespace Ombi.Controllers.V1
var token = new JwtSecurityToken( var token = new JwtSecurityToken(
claims: claims, claims: claims,
expires: rememberMe ? DateTime.Now.AddDays(7) : DateTime.Now.AddDays(1), expires: rememberMe ? DateTime.Now.AddYears(1) : DateTime.Now.AddDays(7),
signingCredentials: creds, signingCredentials: creds,
audience: "Ombi", issuer: "Ombi" audience: "Ombi", issuer: "Ombi"
); );

View file

@ -25,24 +25,40 @@
399106, 399106,
351286, 351286,
348350, 348350,
539885,
508442,
664767,
260513, 260513,
372058, 372058,
299536, 299536,
581389,
577922,
383498, 383498,
330457, 330457,
755812,
495764,
14160,
429617, 429617,
475557, 475557,
420818, 420818,
775996,
283995 283995
], ],
"TvShows": [ "TvShows": [
121361, 121361,
361753,
295685,
74205, 74205,
362392,
81189, 81189,
79126, 79126,
332858,
73762,
79349, 79349,
349309,
275274, 275274,
305288, 305288,
260449,
296762, 296762,
280619, 280619,
305074, 305074,