Skip to content

Conversation

@nitemare
Copy link

Force https:// addresses as api has changed to redirect to https:// and will give 301 errors to http:// requests

Force https:// addresses as api has changed to redirect to https:// and will give 301 errors to http:// requests
@Moinax
Copy link
Owner

Moinax commented Nov 18, 2019

I don't get it, if they change their own API, that's their responsibility to change their mirrors as well.

@proxycheck
Copy link

I made this alteration to try and get things functional again but it appears there is other things that TheTVDB people have broken, are there some other changes we should be making to get things functional again?

At the moment just trying to use the library I'm getting Server 500 errors from my own webserver whenever I try to call something like $tvdb->getSerie(75710); etc

Sorry if this is not the right venue to bring this up, also I know none of this is your fault Moinax. Been using the library for many years 👍

@nitemare
Copy link
Author

nitemare commented Nov 20, 2019 via email

@Moinax
Copy link
Owner

Moinax commented Nov 21, 2019

Hi guys,

I created this library and used it for many years, but when I saw that it was becoming deprecated due to their new API 2.0 and that there was already plenty of good libraries implementing the new version, I decided that there was no need of adapting this one any longer.

So I would recommend you to jump on a newer implementation like https://github.com/canihavesomecoffee/theTVDbAPI

I should update the README.md file to make this clear for everyone, but I never thought about it, sorry.

Anyway, thank you a lot for using this library for so many years.

@niel
Copy link

niel commented Dec 9, 2019

@Moinax Thanks for your input on this topic. I will look into the library you suggested.

@ZeGuigui
Copy link

Old topic but as I am still using this lib I tought I would add a comment :-)

Instead of changing http to https you could simply instruct curl to follow redirects which is less invasive and allow TheTvDb to use whatever place they want!

Line 298 add curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

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.

5 participants