YAMJ / yamj-v2

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

HTTP error 403 returned by Allocine plugin for every new movie added - r3679 #2641

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 2642 created by Omertron on 2013-04-18T14:29:21.000Z:

Hi,

Today I get an HTTP error 403 for every new movie added (or deleted from the Jukebox folder). All these movies have a NFO with Allocine url inside. If I enter the url in my browser a few seconds after I got the error message from YAMJ, the page is correctly displayed. I never got an error 403 from my browser. The result is empty detail pages for all new movies.

Thanks for your help.

(logfiles attached)

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2013-04-18T15:16:29.000Z:

Hi,

I got 403 too, anytime/anywhere :/ What browser are you using? Thanks!

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2013-04-18T15:33:39.000Z:

Hi,

I have the 403 issue when I try to fetch movies details, but not when I perform a search. o_O

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2013-04-18T16:12:35.000Z:

I'm using Firefox 20.0.1 (latest). When I paste an URL such as "http://www.allocine.fr/film/fichefilm_gen_cfilm=127706.html" to the address bar, there's no problem, the correct page is displayed. Same when I navigate through the movie's links. But YAMJ always gives me an error 403 when indexing a new movie (although the correct URL "http://www.allocine.fr/film/fichefilm_gen_cfilm=127706.html" is in the NFO file):

[16:01:49 - Thread-17] ERROR com.moviejukebox.plugin.AllocinePlugin - AllocinePlugin: Failed retrieving Allocine infos for movie : 127706 [16:01:49 - Thread-17] ERROR com.moviejukebox.plugin.AllocinePlugin - java.io.IOException: Server returned HTTP response code: 403 for URL: http://api.allocine.fr/rest/v3/movie?partner=[APIKEY]&profile=large&mediafmt=mp4-lc&format=json&filter=movie&striptags=synopsis,synopsisshort&code=127706 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.moviejukebox.allocine.JSONAllocineAPIHelper.getMovieInfos(JSONAllocineAPIHelper.java:168) at com.moviejukebox.plugin.AllocinePlugin.getMovieInfos(AllocinePlugin.java:509) at com.moviejukebox.plugin.AllocinePlugin.updateMovieInfo(AllocinePlugin.java:230) at com.moviejukebox.plugin.AllocinePlugin.scan(AllocinePlugin.java:218) 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)

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2013-04-18T16:22:53.000Z:

And if you look at the files generated by YAMJ for this movie, you'll see what a mess it is!

Omertron commented 9 years ago

Comment #5 originally posted by Omertron on 2013-04-18T16:29:13.000Z:

Hello, same issue.

Is there a new API Key ?

API Key for Allocine.fr

API_KEY_Allocine=QUNXZWItQWxsb0Npbuk Don't work.
Omertron commented 9 years ago

Comment #6 originally posted by Omertron on 2013-04-18T19:36:07.000Z:

I've got the answer http://wiki.gromez.fr/dev/api/allocine_v3 L'API n'est plus fonctionnelle pour le moment. Une nouvelle méthode pour accéder à l'API a été découverte, je mettrais à jour la page sous peu.

Omertron commented 9 years ago

Comment #7 originally posted by Omertron on 2013-04-18T19:37:47.000Z:

I've got the answer http://wiki.gromez.fr/dev/api/allocine_v3 "L'API n'est plus fonctionnelle pour le moment. Une nouvelle méthode pour accéder à l'API a été découverte, je mettrais à jour la page sous peu."

Omertron commented 9 years ago

Comment #8 originally posted by Omertron on 2013-04-19T06:20:05.000Z:

Thanks for the answer, Steeve. It would be nice to restore the previous method while the new one is under development...

Omertron commented 9 years ago

Comment #9 originally posted by Omertron on 2013-04-19T22:13:46.000Z:

Maybe it can help http://pastebin.com/W4JPGd9d

Omertron commented 9 years ago

Comment #10 originally posted by Omertron on 2013-04-20T08:02:15.000Z:

Issue 2641 has been merged into this issue.

Omertron commented 9 years ago

Comment #11 originally posted by Omertron on 2013-04-20T09:33:07.000Z:

Thanks for the link http://pastebin.com/W4JPGd9d, but I'm not a YAMJ developer. I hope this will help someone else.

Omertron commented 9 years ago

Comment #12 originally posted by Omertron on 2013-04-21T07:26:26.000Z:

Stuart, could you set the priority for this issue to high, because since quite a few days, no one can use Allocine plugin anymore ? Thanks a lot.

Omertron commented 9 years ago

Comment #13 originally posted by Omertron on 2013-04-23T15:14:13.000Z:

i have tested the key partner inside the link http://pastebin.com/W4JPGd9d bit it doesn't work, i got another one but i'm still waiting if it could be used with an open program.

Omertron commented 9 years ago

Comment #14 originally posted by Omertron on 2013-04-24T06:49:41.000Z:

We all (french people) hope you succeed!!! Thanks for your involvement!

Omertron commented 9 years ago

Comment #15 originally posted by Omertron on 2013-04-24T07:38:47.000Z:

Stuart publish R3695 with, as a temporary fix waiting for a definitive one. Thanks a lot to him.

Omertron commented 9 years ago

Comment #16 originally posted by Omertron on 2013-04-24T08:24:46.000Z:

Thanks a lot to Stuart. I'll try it right now!

Omertron commented 9 years ago

Comment #17 originally posted by Omertron on 2013-04-24T09:07:17.000Z:

It s good for me. Thanks :)

Omertron commented 9 years ago

Comment #18 originally posted by Omertron on 2013-04-24T13:20:14.000Z:

It's all ok for me too ! Thanks Stuart ! Is there any way to have YAMJ regenerate all the detail pages that were created since the Allocine problem occured ? i.e regenerate all empty detail pages.

Omertron commented 9 years ago

Comment #19 originally posted by Omertron on 2013-04-25T09:04:44.000Z:

I found out: just need to set mjb.recheck.Unknown=true

Omertron commented 9 years ago

Comment #20 originally posted by Omertron on 2013-04-25T09:31:18.000Z:

Thank you ! It's working again

Omertron commented 9 years ago

Comment #21 originally posted by Omertron on 2013-04-29T14:36:50.000Z:

<empty>