elgatito / plugin.video.elementum

Elementum add-on for Kodi. Development of this addon has been stopped!
http://elementum.surge.sh
MIT License
479 stars 158 forks source link

does not search for anything and does not reproduce #874

Closed saperex closed 1 year ago

saperex commented 2 years ago

a couple of days ago, for no apparent reason, the plugin stopped working, when trying to play from favorites, nothing happens, and when trying to search in movies or TV shows, it finds nothing kodi.log

antonsoroko commented 2 years ago

the only thing that caught my eye in log is : 2022-04-10 16:59:52.798 T:2676 WARNING <general>: [plugin.video.elementum] ERRO tmdb ▶ func1 Bad status getting search movie with map[api_key:[8cf43ad9c085135b9479ad5cf6bbcbda] page:[1] query:[chernobyl]] on https://api.themoviedb.org/3/search/movie: 403 and it is because of 2022-04-10 16:59:31.595 T:2676 WARNING <general>: [plugin.video.elementum] WARN tmdb ▶ CheckAPIKey TMDB API key failed: ae4bd1b6fce2a5648671bfc171d15ba4 2022-04-10 16:59:31.596 T:2676 WARNING <general>: [plugin.video.elementum] ERRO tmdb ▶ CheckAPIKey No valid TMDB API key found

Maybe it is connected to https://github.com/elgatito/elementum/pull/82

So, maybe TMDB is actually started to ban requests from some countries. Or old built-in API key was banned completely b/c of requests from some countries (although in this case i think there would be many issue reports, so it is unlikely).

4 options here to see what is really going on:

  1. use VPN to other country - if it will work - then it was ban by country

  2. wait for fix above to be merged and new version released (no idea when it can happen), and then use Proxy to other country - if it will work - then it was ban by country

  3. looks like api key is ok, thus no need: ~create your own TMDB API key and set it in "Advanced" tab -> "TheMovieDB" -> "API key" - if it will work - then it was ban of api key~ https://github.com/elgatito/plugin.video.elementum/blob/a3e1bed8489344518de32421ba373c6956bfa8db/resources/settings.xml#L393 https://github.com/elgatito/plugin.video.elementum/blob/a3e1bed8489344518de32421ba373c6956bfa8db/resources/language/messages.pot#L164

  4. if i remember correctly there is an option to use trakt for metadata (like localized movie name, year, etc) instead of TMDB (since it is a fallback option it might have some issues or less functionality, but should be enough for simple use cases): option name is "Use Trakt information in Trakt lists" https://github.com/elgatito/plugin.video.elementum/blob/a3e1bed8489344518de32421ba373c6956bfa8db/resources/language/messages.pot#L957 https://github.com/elgatito/plugin.video.elementum/blob/a3e1bed8489344518de32421ba373c6956bfa8db/resources/settings.xml#L307 in "Trakt" tab

remezen commented 2 years ago

+1 for this.

antonsoroko commented 2 years ago

looks like api key is ok, so options are 1,2,4. 1 - will definitely fix issue. 2 - if you can wait (no idea how much time), or if you want to build new version by yourself 4 - probably will fix issue (but there might be some side effects)

pavelmxx commented 2 years ago

https://blog.themoviedb.org/the-movie-database-suspends-access-from-russia-and-belarus-b6a1a96fb35b

The Movie Database has suspended access to the site and API from Russian and Belarussian IP addresses and for the time being will not be doing business with entities or individuals based in Russia or Belarus. We join with the global community in condemning Russia’s actions in Ukraine and in wishing for a rapid return to peace for those who have been impacted by this war, particularly the people of Ukraine and the surrounding countries.

Amazon CloudFront distribution is configured to block access from your country.

pavelmxx commented 1 year ago

It's been happening again for two weeks now. 2022-11-06 03:45:01.169 T:13444 NOTICE: [plugin.video.elementum] ERRO tmdb ▶ func1 Failed to make request to https://api.themoviedb.org/3/find/75897 for find with map[api_key:[29a551a65eef108dd01b46e27eb0554a] external_source:[tvdb_id]]: Get "https://api.themoviedb.org/3/find/75897?api_key=29a551a65eef108dd01b46e27eb0554a&external_source=tvdb_id": dial tcp 127.0.0.1:443: connectex: No connection could be made because the target machine actively refused it.

elgatito commented 1 year ago

Closing this stale issue. Feel free to re-open if there is an issue.