Hello, thanks for the link. I have tested the Allocine plugin with Freevo 1.8.3 and 1.8.4 (svn rev 11224).
The attached patch has been applied to fix a minor regexp issue while dealing with movies production date (returned 'Unknown'). Hope you will include this plugin into the Freevo source tree as soon as possible. Thanks for your work. Cheers, Mathias. On Tue, Dec 23, 2008 at 08:52:11PM +0100, Stéphane Lavirotte wrote: > Hello, > > I developped and I try to maintain (when I find some time to do this) > the allocine plugin. This plugin was tested on freevo 1.8.1 (or 1.8.2) > and it was still running. You can find an archive to install on my website: > > http://stephane.lavirotte.com/perso/bibox/index.html > > I didn't tested it with 1.8.3 because I need to build another box > because the previous one dead last month. I'm waiting for chrismas > day... ;) I plan to include it on freevo source tree as soon as possible. > > Sincerely, > > Stéphane
diff -ur freevo-allocine-1.6.orig/src/util/fxdallocine.py freevo-allocine-1.6/src/util/fxdallocine.py --- freevo-allocine-1.6.orig/src/util/fxdallocine.py 2008-12-26 22:55:55.000000000 +0100 +++ freevo-allocine-1.6/src/util/fxdallocine.py 2008-12-26 23:40:16.000000000 +0100 @@ -117,14 +117,14 @@ return None regexp_idmovie = re.compile('.*/film/fichefilm_gen_cfilm=([0-9]+)\.html" class="link1">(.*)</a></h4>.*', re.I | re.S) - regexp_iddate = re.compile('.*^<h4 style="color:.*\(([0-9]{4})\)</h4>.*', re.I | re.S | re.M) + regexp_iddate = re.compile('<h4 style="color:.*?">([0-9]{4})</h4>.*', re.I | re.S | re.M) for block in response.read().split("<tr>"): #print "[[%s]]" % block m = regexp_idmovie.match(block) if m: #print "Found film in block : %s" % block - d = regexp_iddate.match(block) + d = regexp_iddate.search(block) if d: date = d.group(1) else: diff -ur freevo-allocine-1.6.orig/src/video/plugins/allocine.py freevo-allocine-1.6/src/video/plugins/allocine.py --- freevo-allocine-1.6.orig/src/video/plugins/allocine.py 2008-12-26 22:55:55.000000000 +0100 +++ freevo-allocine-1.6/src/video/plugins/allocine.py 2008-12-26 22:55:54.000000000 +0100 @@ -77,7 +77,7 @@ def __init__(self, license=None): - if not config.USE_NETWORK: + if not config.SYS_USE_NETWORK: self.reason = 'no network' return plugin.ItemPlugin.__init__(self)
------------------------------------------------------------------------------
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel