Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #1907 #2093

Merged
merged 8 commits into from
Mar 26, 2018
Merged

Fix for issue #1907 #2093

merged 8 commits into from
Mar 26, 2018

Conversation

anojht
Copy link
Contributor

@anojht anojht commented Mar 23, 2018

Implemented bg and poster on issue details page as per issue #1907

this.backgroundPath = this.sanitizer.bypassSecurityTrustStyle
("url(" + x + ")");
});
this.searchService.getShowInformationTreeNode(Number(issue.providerId)).subscribe(x => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably shouldn't be doing this just to get the banner.
This will pull back ALL the information about the request, and we need to keep in mind that there might not be a request associated with the issue.

We can raise issues on content that do not have requests.

Copy link
Contributor Author

@anojht anojht Mar 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tidusjar Good point, I did not think of that. Would writing a few API calls that just returns image paths be the best solution here instead?

For example, I wrote API calls inside image.service.ts but the FanArt banner and poster images were inconsistent with the request or search images. So maybe just writing new API calls for TheMovieDBApi.cs and TvMazeApi.cs to return just the images would work?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we have the provider id so we can just use the Image service (check the Image Controller to see what we currently support)

If you are writing a new api then I suggest it should be on the ImageController.

Copy link
Contributor Author

@anojht anojht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed review and wrote new calls to just get images

@Magikarplvl4 Magikarplvl4 requested a review from tidusjar March 25, 2018 17:39
@tidusjar
Copy link
Member

Looks good. I can't see anything else here.

Have you done the appropriate dev testing to make sure it's functioning correctly?

@anojht
Copy link
Contributor Author

anojht commented Mar 26, 2018

@tidusjar Yes I have tested as much as I can think of inside VS!

@tidusjar
Copy link
Member

Thanks a lot!

@tidusjar tidusjar merged commit f2a59b4 into Ombi-app:develop Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants