|
|
|
@ -4,8 +4,8 @@ import { RequestType, ISearchTvResult, ISearchMovieResult } from "../../../inter
|
|
|
|
|
import { SearchV2Service } from "../../../services";
|
|
|
|
|
import { MatDialog } from "@angular/material";
|
|
|
|
|
import { DiscoverCardDetailsComponent } from "./discover-card-details.component";
|
|
|
|
|
import { ISearchTvResultV2 } from "../../interfaces/ISearchTvResultV2";
|
|
|
|
|
import { ISearchMovieResultV2 } from "../../interfaces/ISearchMovieResultV2";
|
|
|
|
|
import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2";
|
|
|
|
|
import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: "discover-card",
|
|
|
|
@ -43,12 +43,12 @@ export class DiscoverCardComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
private getExtraMovieInfo() {
|
|
|
|
|
// if(!this.result.imdbid) {
|
|
|
|
|
if(!this.result.imdbid) {
|
|
|
|
|
this.searchService.getFullMovieDetails(this.result.id)
|
|
|
|
|
.subscribe(m => {
|
|
|
|
|
this.updateMovieItem(m);
|
|
|
|
|
});
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private updateMovieItem(updated: ISearchMovieResultV2) {
|
|
|
|
|