AlloCiné API v3

瀏覽次數:190 次
跳到第一則未讀訊息

CinéphOli

未讀,
2012年3月31日 上午11:53:562012/3/31
收件者:griffit...@googlegroups.com
Hi,

I patched PluginMovieAllocine.py myself in order to cope with their new
API v3. It works for me, no error message.

(you may wish to see also my msg in g.c.m.g.user)

HTH

--
Cinï¿œphOli
Using Griffith v0.12.1 on Ubuntu 10.04 LTS

PluginMovieAllocine.py
PluginMovieAllocine.py.diff

CinéphOli

未讀,
2012年4月13日 下午1:46:012012/4/13
收件者:griffit...@googlegroups.com
Hello,

Le 31/03/2012 17:53, CinéphOli a écrit :
> Hi,
>
> I patched PluginMovieAllocine.py myself in order to cope with their new
> API v3. It works for me, no error message.
>
> (you may wish to see also my msg in g.c.m.g.user)
>
> HTH
>

I just found out on the web that Allociné shares the very same API (and
database structure!) with its sister sites Screenrush (UK,
screenrush.co.uk), Beyazperde (Turkish, beyazperde.com), Filmstarts
(German, filmstarts.de) and Sensacine (Spanish, sensacine.com).

For testing purposes, I did it the quick and dirty way, ie I copied and
pasted PluginMovieAllocine.py and simply replaced every occurrences of
allocine.fr with the domain names mentioned here above, keeping of
course the www.'s and api.'s as it is, then I adapted the "meta-info"
(site name, language,…) and saved of course under appropriate filenames
(doh!).

And… Voilà, it works, 4 new sites in various languages!

I didn't attach the files because a) it's quick and dirty, and b) it's
very easy to reproduce.

(From a programming point of view, I suppose it would be better to share
a common routine/object for all the retrievals of the json data, and
call that routine with a proper set of parameters to address the right
language version.)

It's also possible to go on the sites and retrieve the various logos to
display in Griffith.

HTH.

--
CinéphOli
Using Griffith v0.13 r1623 on Ubuntu 10.04 LTS

訊息已遭刪除

thib...@gmail.com

未讀,
2013年5月22日 下午4:18:162013/5/22
收件者:griffit...@googlegroups.com、cine...@gmail.com
Hi this API is now obsolete as Allocine has been updated.
Can anyone help to upgrade using the new mechanism ?
This link shows the implementation using PHP : https://github.com/gromez/allocine-api

Thanks.

Ed

未讀,
2013年12月1日 上午10:23:102013/12/1
收件者:griffit...@googlegroups.com、cine...@gmail.com、thib...@gmail.com
Hi,
  I wrote a plugin for Allocine without using the API.

To use this plugin, you have to change the file add.py a little bit.

At the line 273 (just after def get_from_web(self): ) you have to add

    global titletopass

(with 4 spaces on the beginning of the line)
and before the paragraph starting with try:
        if plugin_name == 'PluginMovieAllocinenoapi':
            titletopass = '"%s"' % self.search_movie.title

(8 spaces before if).

I know it is not perfect, but works for most of the time.  If you encounter a particular problem you would like to see fixed, let me know.
PluginMovieAllocinenoapi.py

Michael Jahn

未讀,
2013年12月1日 下午3:55:422013/12/1
收件者:griffit...@googlegroups.com、cine...@gmail.com、thib...@gmail.com
The current version of the plugin from the source code repository works like a charm for me.
https://svn.berlios.de/svnroot/repos/griffith/trunk/lib/plugins/movie/PluginMovieAllocine.py
--
You received this message because you are subscribed to the Google Groups "Griffith devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to griffith-deve...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ed

未讀,
2013年12月2日 中午12:21:332013/12/2
收件者:griffit...@googlegroups.com、cine...@gmail.com、thib...@gmail.com
With the "current plugin" I get the following errors.
2013-12-02T18:17:55: E: Griffith(add:324):
Traceback (most recent call last):
  File "/usr/share/griffith/lib/add.py", line 311, in get_from_web
    urllib2.urlopen(self.search_movie.url)
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

hvl

未讀,
2013年12月2日 下午3:53:322013/12/2
收件者:griffit...@googlegroups.com
So I'm glad to see there still is some activity around Griffith. And I am
glad to know some people with appropriate skill are maintaining it.
My problem is a similar one, only I'm looking for an actual plug-in for IMDB,
as thei have changed the layout of their pages again; This means can download
basic data for a film but you have to fill in manually quite some other data,
e.g. actors, contents etc.
That said I'd greatly appreciate if someone can tell where to find and
download an actually working copy of the "PluginMovieIMDB.py"

Thanks a lot

HvL

Michael Jahn

未讀,
2013年12月2日 下午5:50:302013/12/2
收件者:griffit...@googlegroups.com

hvl

未讀,
2013年12月3日 上午9:15:502013/12/3
收件者:griffit...@googlegroups.com
Michael Jahn <mikej06@...> writes:

>
> Try the official last version from here:
> http://svn.berlios.de/svnroot/repos/griffith/trunk/lib/plugins/movie/
PluginMovieIMDB.py

Many thanks for the new plugin, it worked fine; there was missing only the
production year when I tried an import (film: page eight)



Michael Jahn

未讀,
2013年12月3日 下午2:59:462013/12/3
收件者:griffit...@googlegroups.com
I modified the plugin again. Please get a fresh copy from

http://svn.berlios.de/svnroot/repos/griffith/trunk/lib/plugins/movie/PluginMovieIMDB.py

and try your movie again.
回覆所有人
回覆作者
轉寄
0 則新訊息