From 2da1272ab8725c074c3b509ec5fc3dcb1d8088c5 Mon Sep 17 00:00:00 2001 From: TidusJar Date: Mon, 30 Jul 2018 10:50:05 +0100 Subject: [PATCH] !wip on the TV show --- .../app/interfaces/ISearchTvResult.ts | 7 +++ .../app/search/tvsearch.component.html | 57 +++++++++---------- .../app/search/tvsearch.component.ts | 27 +++++---- .../ClientApp/app/services/search.service.ts | 16 +++--- src/Ombi/tsconfig.json | 2 +- 5 files changed, 56 insertions(+), 53 deletions(-) diff --git a/src/Ombi/ClientApp/app/interfaces/ISearchTvResult.ts b/src/Ombi/ClientApp/app/interfaces/ISearchTvResult.ts index 81d716bfc..bbfef5415 100644 --- a/src/Ombi/ClientApp/app/interfaces/ISearchTvResult.ts +++ b/src/Ombi/ClientApp/app/interfaces/ISearchTvResult.ts @@ -28,8 +28,15 @@ export interface ISearchTvResult { available: boolean; plexUrl: string; embyUrl: string; + quality: string; firstSeason: boolean; latestSeason: boolean; + theTvDbId: string; + subscribed: boolean; + showSubscribe: boolean; + fullyAvailable: boolean; + partlyAvailable: boolean; + background: any; } export interface ITvRequestViewModel { diff --git a/src/Ombi/ClientApp/app/search/tvsearch.component.html b/src/Ombi/ClientApp/app/search/tvsearch.component.html index 6007bd7e2..564b5ffde 100644 --- a/src/Ombi/ClientApp/app/search/tvsearch.component.html +++ b/src/Ombi/ClientApp/app/search/tvsearch.component.html @@ -42,49 +42,46 @@
{{ 'Search.NoResults' | translate }}
- - - {{ 'Search.TvShows.Results' | translate }} - - +
+
-
+
-
+
- poster + poster
- -

{{node.data.title}} ({{node.data.firstAired | date: 'yyyy'}})

+
+

{{node.title}} ({{node.firstAired | date: 'yyyy'}})

- + {{ 'Search.Movies.HomePage' | translate }} - + {{ 'Search.Movies.Trailer' | translate }} - {{node.data.status}} + {{node.status}} - {{ 'Search.TvShows.AirDate' | translate }} {{node.data.firstAired | date: 'dd/MM/yyyy'}} + {{ 'Search.TvShows.AirDate' | translate }} {{node.firstAired | date: 'dd/MM/yyyy'}} - {{node.data.network}} + {{node.network}} - {{ 'Common.Available' | translate }} + {{ 'Common.Available' | translate }} - {{ 'Common.PartlyAvailable' | translate }} + {{ 'Common.PartlyAvailable' | translate }} @@ -93,25 +90,25 @@

-

{{node.data.overview}}

+

{{node.overview}}

-