YAMJ / yamj-v2

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

Is API Key for Allocine.fr have change ? #2739

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 2742 created by Omertron on 2014-08-27T15:42:20.000Z:

I think there is problem with the apikeys use by the allocine plugin for exemple:

http://api.allocine.fr/rest/v3/search?partner=QUNXZWItQWxsb0Npbuk&filter=movie,theater,person,news,tvseries&count=5&page=1&q=avatar&format=json

return a 403 error

I use YAMJ 2.10 SNAPSHOT r3905 on Windows 8.1 x64 and Eversion YAMJ r0179c with Whisper skin. on Popcornhour A-200

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2014-08-28T06:41:26.000Z:

I have exactly the same problem. Access to Allocine return now a 403 error. I use YAMJ 2.10 SNAPSHOT r3905 on Linux. (I try r3900 ... the same problem) I have a little PHP script to fetch Allocine, with the same API key as YAMJ, and this script works fine ... In PHP I use API_KEY_Allocine_Partner=100043982026 API_KEY_Allocine_Secret=29d185d98c984a359e6e6f26a0474269 Very strange behaviour ....

Daniel

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2014-08-28T07:46:53.000Z:

I do some investigation with TCPDUMP

YAMJ access ==> return 403 .... ==>GET /rest/v3/movie?partner=100043982026&code=206727&profile=large&filter=movie&striptags=synopsis%2Csynopsisshort&format=json&sed=20140828&sig=eA7Nq%2B98eBvDq9KU5aLUr1xCxZQ%3D HTTP/1.1 ==>User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.0.3; GT-P3100 Build/IML74K) ==>Proxy-Authorization: Basic Og== ==>Host: api.allocine.fr ==>Accept: text/html, image/gif, image/jpeg, ; q=.2, */; q=.2 ==>Connection: keep-alive

PHP with Curl with the same Allocine ID film ==> Return OK ==>GET /rest/v3/movie?partner=100043982026&code=206727&profile=large&filter=movie&striptags=synopsis%2Csynopsisshort&format=json&sed=20140828&sig=eA7Nq%2B98eBvDq9KU5aLUr1xCxZQ%3D HTTP/1.1 ==>User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.2.2; Nexus 4 Build/JDQ39E) ==>Host: api.allocine.fr ==>Accept: /

The only difference is the user agent, Accept and Connection keep-alive ....Very strange ...

And it's amazing, but after a successful access via PHP for an Allocine ID, YAMJ is working again for this ID?

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2014-08-28T14:51:16.000Z:

After some others tests, It seems that the user agent is the problem. Maybe blocked by Allocine ? I see in another project that the developer uses random user agent to avoid block... Maybe an idea to follow? https://gitorious.org/valos-labs/mobine/commit/3feb534b9f5c86e606420df58b5e2417b013b7cb

Daniel

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2014-08-30T12:12:46.000Z:

I have the same problem

Omertron commented 9 years ago

Comment #5 originally posted by Omertron on 2014-09-01T01:40:29.000Z:

Same issue

Omertron commented 9 years ago

Comment #6 originally posted by Omertron on 2014-09-01T06:41:48.000Z:

Hello,

I've got the same issue (error 403) with the api allocine. Ymaj version 2.10-SNAPSHOT Revision: r3905

Omertron commented 9 years ago

Comment #7 originally posted by Omertron on 2014-09-01T12:44:04.000Z:

Hello, For now I use TheMovieDB plugin instead of the AlloCine plugin. I'm from france and it have multilanguage "support" for most movie.

if the movie scanned has no translations for it, then it will display the plot as UNKNOW. Then create a .nfo file near your movie like:

For the movie "Wing Chun" the avi is call:

Wing Chun Wing Chun Wing Chun 1994 Une jeune veuve vient de perdre son mari et se retrouve a se vendre pour payer un enterrement a son mari. Wing Chun, une jeune femme prise de pitie, decide d'user de sa maitrise des arts martiaux afin de la proteger, elle et son village en proie a des attaques de voleurs terrorisant la region. 41558 tt0111800 25645

Hope it help.

Omertron commented 9 years ago

Comment #8 originally posted by Omertron on 2014-09-01T23:18:11.000Z:

oui moi aussi sa commencer a faire sa avez vous des sollutions merci

Omertron commented 9 years ago

Comment #9 originally posted by Omertron on 2014-09-02T07:19:26.000Z:

me too +1 help please

Omertron commented 9 years ago

Comment #10 originally posted by Omertron on 2014-09-03T21:28:24.000Z:

Issue 2744 has been merged into this issue.

Omertron commented 9 years ago

Comment #11 originally posted by Omertron on 2014-09-05T11:22:36.000Z:

for information, this morning (September 5) the problem with allocine site had disappeared... I indexed with YAMJ twenty films without any problem (version r3905) Let's hope it lasts. D.

Omertron commented 9 years ago

Comment #12 originally posted by Omertron on 2014-09-05T23:36:03.000Z:

It's working again for me too.

Omertron commented 9 years ago

Comment #13 originally posted by Omertron on 2014-09-06T05:10:52.000Z:

same for me , this issue could be closed

Omertron commented 9 years ago

Comment #14 originally posted by Omertron on 2014-09-08T07:03:28.000Z:

Also fixed with release r3907

Omertron commented 9 years ago

Comment #15 originally posted by Omertron on 2014-09-08T07:04:53.000Z:

<empty>

Omertron commented 9 years ago

Comment #16 originally posted by Omertron on 2014-09-08T07:06:43.000Z:

With release r3907 a random user agent will be used