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

Fixing HTTPS and exception on no results #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jy-roda
Copy link

@jy-roda jy-roda commented Aug 22, 2020

The TvDb api changed to https only. Requests to http endpoints fail. Using https fixes that. Unfortunately, the mirrors.xml file still gives http links. A quick workaround is to use the provided base url and disregard any mirrors (which are not provided in the mirrors.xml file anyway).

There was a bug where if no results were found for a certain request, the parsed xml response evaluated as false and triggered an exeption despite being valid. A stricter false check corrects this.

Jean-Yves Roda added 2 commits August 22, 2020 17:28
@Moinax
Copy link
Owner

Moinax commented Aug 27, 2020

Hi @jy-roda as I already said here #43 the TVDB api v1 is deprecated and I recommend using a new library that actually implements the api v2.

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