Skip to content

Commit

Permalink
* Fixed not showing the view on X button for TV shows
Browse files Browse the repository at this point in the history
* Fixed the banners for Partially available TV shows
  • Loading branch information
tidusjar committed Jan 8, 2021
1 parent f54ac1c commit bb29b54
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
11 changes: 11 additions & 0 deletions src/Ombi/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Backend",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/net5.0/ombi.dll",
"args": ["--host", "http://localhost:3577"],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
},
{
"name": "ng serve",
"type": "chrome",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="card-spacing box" *ngIf="result">
<mat-card class="mat-elevation-z8 dark-card grow">
<div class="ribbon {{getStatusClass()}} ribbon-top-right"><span>
<!-- <i class="ribbon-icon fa {{getAvailbility()}}"></i> -->
{{getAvailbilityStatus()}}
</span></div>
<a [routerLink]="result.type === RequestType.movie ? '/details/movie/' + result.id : '/details/tv/' + result.id">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ export class DiscoverCardComponent implements OnInit {
return "";
}

public getAvailbility(): string {
if (this.result.available) {
return "fa-check-circle";
}
if (this.result.approved) {
return "fa-check-circle";
}
if (this.result.requested) {
return "fa-question-circle";
}
return "";
}

public getAvailbilityStatus(): string {
if (this.result.available) {
return "Available";
Expand Down Expand Up @@ -107,7 +94,7 @@ export class DiscoverCardComponent implements OnInit {
private updateTvItem(updated: ISearchTvResultV2) {
this.result.title = updated.title;
this.result.id = updated.id;
this.result.available = updated.fullyAvailable;
this.result.available = updated.fullyAvailable || updated.partlyAvailable;
this.result.posterPath = updated.banner;
this.result.requested = updated.requested;
this.result.url = updated.imdbId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class DiscoverComponent implements OnInit {
url: undefined,
rating: +m.rating,
overview: m.overview,
approved: m.approved,
approved: m.approved || m.partlyAvailable,
imdbid: m.imdbId,
denied: false,
background: m.background
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h3> {{ 'MediaDetails.NotEnoughInfo' | translate }}</h3>
<div class="col-12 col-lg-3 col-xl-3 media-row">

<social-icons [homepage]="tv.homepage" [tvdbId]="tv.id" [hasTrailer]="tv.trailer"
(openTrailer)="openDialog()" [imdbId]="tv.imdbId" [available]="tv.available"
(openTrailer)="openDialog()" [imdbId]="tv.imdbId" [available]="tv.available || tv.partlyAvailable"
[plexUrl]="tv.plexUrl" [embyUrl]="tv.embyUrl" [jellyfinUrl]="tv.jellyfinUrl">
</social-icons>

Expand Down

0 comments on commit bb29b54

Please sign in to comment.