YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Allocine plugin Failed to retrieve id for movie #2639

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 2640 created by Omertron on 2013-04-16T06:26:20.000Z:

What steps will reproduce the problem? 1.here is the error message I obtain with every movies :

ERROR com.moviejukebox.plugin.AllocinePlugin - AllocinePlugin: Failed to retrieve Allocine id for movie : Stars 80 [08:07:34 - Thread-2] ERROR com.moviejukebox.plugin.AllocinePlugin - java.io.IOException: Server returned HTTP response code: 403 for URL: http://api.allocine.fr/rest/v3/search?partner=[APIKEY]&format=xml&filter=movie&q=Stars+80 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.moviejukebox.allocine.XMLAllocineAPIHelper.searchMovieInfos(XMLAllocineAPIHelper.java:78) at com.moviejukebox.plugin.AllocinePlugin.getAllocineMovieId(AllocinePlugin.java:153) at com.moviejukebox.plugin.AllocinePlugin.getMovieId(AllocinePlugin.java:95) at com.moviejukebox.plugin.AllocinePlugin.getMovieId(AllocinePlugin.java:83) at com.moviejukebox.plugin.AllocinePlugin.scan(AllocinePlugin.java:204) at com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:117) at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1951) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:942) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:923) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at com.moviejukebox.tools.ThreadExecutor$ScheduledThread.run(ThreadExecutor.java:105)

I use the 2.9-SNAPSHOTRevision: r3677 on a windows 7 pro PC The default skin is used A Popcorn C200 is used with yamj and the same error produce on PC

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2013-04-16T07:41:59.000Z:

The API-Key has changed, so you just have set another API key in the apikeys.properties for allocine (placed in the conf folder).

Please use this in your apikeys.properties:

# API Key for Allocine.fr
API_KEY_Allocine=QUNXZWItQWxsb0Npbuk
Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2013-04-16T07:42:34.000Z:

This issue was closed by revision r3678.

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2013-04-19T06:06:59.000Z:

not fixed for me and some other french user : still have the error [08:03:04 - Thread-3] ERROR com.moviejukebox.plugin.AllocinePlugin - AllocinePlugin: Failed to retrieve Allocine id for movie : Danse avec les loups [08:03:04 - Thread-3] ERROR com.moviejukebox.plugin.AllocinePlugin - java.io.IOException: Server returned HTTP response code: 403 for URL: http://api.allocine.fr/rest/v3/search?partner=[APIKEY]&format=json&filter=movie&q=Danse+avec+les+loups at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.moviejukebox.allocine.JSONAllocineAPIHelper.searchMovieInfos(JSONAllocineAPIHelper.java:77) at com.moviejukebox.plugin.AllocinePlugin.getAllocineMovieId(AllocinePlugin.java:153) at com.moviejukebox.plugin.AllocinePlugin.getMovieId(AllocinePlugin.java:95) at com.moviejukebox.plugin.AllocinePlugin.getMovieId(AllocinePlugin.java:83) at com.moviejukebox.plugin.AllocinePlugin.scan(AllocinePlugin.java:204) at com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:117) at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1951) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:942) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:923) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at com.moviejukebox.tools.ThreadExecutor$ScheduledThread.run(ThreadExecutor.java:105)

i get back to the 3677 and change manually the apikey this has the same effect and error.