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

Error Conflicting getter definitions #1

Open
peavers opened this issue Jul 26, 2018 · 0 comments
Open

Error Conflicting getter definitions #1

peavers opened this issue Jul 26, 2018 · 0 comments

Comments

@peavers
Copy link

peavers commented Jul 26, 2018

Nice library dude, but looks like there is a conflict with your getters in the Item modal.

ERROR synapticloop.newznab.api.NewzNabApi - Error 'Conflicting getter definitions for property "guid": synapticloop.newznab.api.response.model.Item#getGuid(0 params) vs synapticloop.newznab.api.response.model.Item#getDetailsLink(0 params)

I'm not doing anything fancy, just calling a simple call with a query

public List<Item> getMovies(String query) {
    try {
        return newzNabApi.search(query).getItems();
    } catch (NewzNabApiException | IOException e) {
        log.error("search failed {}", e.getMessage());
    }
    return null;
}

And I've wired up newzNabApi as follows

@Configuration
public class NewznabConfig {
    private static final String API_KEY = "***";

    private static final String NEWZNAB_API = "***";

    @Bean
    public NewzNabApi NewzNabApi() {
        return new NewzNabApi(NEWZNAB_API, API_KEY);
    }
}

Any insight?

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

No branches or pull requests

1 participant