Christian Lyra wrote:
> Hi there,
>
> IMDB plugin doesnt work in the last SVN version (11322). The log shows this:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/freevo/util/fxdimdb.py", line
> 816, in parsesearchdata
> soup = BeautifulSoup(results.read(), convertEntities='xml')
> File "/var/lib/python-support/python2.5/BeautifulSoup.py", line
> 1499, in __init__
> BeautifulStoneSoup.__init__(self, *args, **kwargs)
> File "/var/lib/python-support/python2.5/BeautifulSoup.py", line
> 1230, in __init__
> self._feed(isHTML=isHTML)
> File "/var/lib/python-support/python2.5/BeautifulSoup.py", line 1263, in
> _feed
> self.builder.feed(markup)
> File "/usr/lib/python2.5/HTMLParser.py", line 108, in feed
> self.goahead(0)
> File "/usr/lib/python2.5/HTMLParser.py", line 148, in goahead
> k = self.parse_starttag(i)
> File "/usr/lib/python2.5/HTMLParser.py", line 226, in parse_starttag
> endpos = self.check_for_whole_start_tag(i)
> File "/usr/lib/python2.5/HTMLParser.py", line 301, in
> check_for_whole_start_tag
> self.error("malformed start tag")
> File "/usr/lib/python2.5/HTMLParser.py", line 115, in error
> raise HTMLParseError(message, self.getpos())
> HTMLParseError: malformed start tag, at line 277, column 62
> WARNING: Cannot parse
> 'http://www.imdb.com/find?s=tt;site=aka;q=against%20dark': malformed
> start tag, at line 277, column 62
This is not really a freevo problem, as the url is passed directly to
BeautifulSoup.
Which version of BeautifulSoup have you installed? I'm using 3.0.7a and
this works fine with Python-2.5
I guess that the query is:
freevo imdb -s "against dark"
and the results are:
Searching IMDB for 'imdb against dark'...
1194271 Against the Dark (2009) V
0107718 Nurses on the Line: The Crash of Flight 7 (1993) TV
0891340 Pime? vasten (2006)
0241161 Against the Darkness (1992) TV
0446443 Rage Against the Darkness (2004) TV
0190345 A Dance Against Darkness (1991) TV
1364091 Against the Grain: A Documentary on the Life of Tara Dakides
(2008) V
0286923 Riben guizi (2001)
0346877 Do Not Enter: The Visa War Against Ideas (1987)
0125591 War Against the Indians (1992)
0266749 Mark Tven-protiv (1975) TV
0325612 In a New Light: A Call to Action in the War Against AIDS (1992) TV
0097821 Man Against the Mob: The Chinatown Murders (1989) TV
0013238 His Back Against the Wall (1922)
With Python-2.6 I would expect the problem that you report as the HTML
parser has changed.
Duncan
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users