Author: duncan
Date: Fri Feb 23 20:11:06 2007
New Revision: 9260

Modified:
   branches/rel-1/freevo/src/util/fxdimdb.py

Log:
Fetching imdb info failing because of encoding problems
Patch from Christian Aistleitner applied


Modified: branches/rel-1/freevo/src/util/fxdimdb.py
==============================================================================
--- branches/rel-1/freevo/src/util/fxdimdb.py   (original)
+++ branches/rel-1/freevo/src/util/fxdimdb.py   Fri Feb 23 20:11:06 2007
@@ -567,8 +567,7 @@
         self.imdb_id_list = []
         m=re.compile('/title/tt([0-9]*)/')
         y=re.compile('\(([^)]+)\)')
-        soup = BeautifulSoup()
-        soup.feed(results.read())
+        soup = BeautifulSoup(results.read())
         items = soup.findAll('a', href=re.compile('/title/tt'))
         for item in items:
             idm = m.search(item['href'])
@@ -595,10 +594,8 @@
 
         dvd = 0
 
-        soup = BeautifulSoup()
-
         try:
-            soup.feed(results.read())
+            soup = BeautifulSoup(results.read())
         except UnicodeDecodeError:
             print "Unicode error; check that /usr/lib/python2.x/site.py has 
the correct default encoding"
             pass

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to