Author: duncan
Date: Sun Oct 29 09:44:09 2006
New Revision: 8501

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

Log:
[ 1586579 ] imdb fix
Patch applied


Modified: branches/rel-1-6/freevo/src/util/fxdimdb.py
==============================================================================
--- branches/rel-1-6/freevo/src/util/fxdimdb.py (original)
+++ branches/rel-1-6/freevo/src/util/fxdimdb.py Sun Oct 29 09:44:09 2006
@@ -10,17 +10,6 @@
 # - webradio support?
 #
 # -----------------------------------------------------------------------
-# $Log$
-# Revision 1.7.2.1  2005/01/09 10:29:17  dischi
-# make imdb work again
-#
-# Revision 1.7  2004/07/10 12:33:42  dischi
-# header cleanup
-#
-# Revision 1.6  2004/06/20 13:06:20  dischi
-# move freevo-rebuild-database to cache dir
-#
-# -----------------------------------------------------------------------
 # Freevo - A Home Theater PC framework
 # Copyright (C) 2003 Krister Lagerstrom, et al.
 # Please see the file freevo/Docs/CREDITS for a complete list of authors.
@@ -39,7 +28,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
 
 
 # python has no data hiding, but this is the intended use...
@@ -615,8 +604,12 @@
         Returns tuple of (title, info(dict), image_urls)"""
 
         dvd = 0
-        
-        regexp_title   = re.compile('.*STRONG CLASS="title">(.*?)<', re.I)
+
+        # This is split across two lines, as the code is regexp and should be 
an XML parser
+        # this has made it far more difficult to repair. using the page title 
_SHOULD_ work
+        #   - Karl Lattimer
+        #regexp_title   = re.compile('.*STRONG CLASS="title">(.*?)<', re.I)
+        regexp_title   = re.compile('<title>(.*?) \(.*\)</title>', re.I)
         regexp_year    = re.compile('.*<A HREF="/Sections/Years/.*?([0-9]*)<', 
re.I)
         regexp_genre   = re.compile('.*href="/Sections/Genres(.*)$', re.I)
         regexp_tagline = re.compile('.*<B CLASS="ch">Tagline.*?</B>(.*?)<', 
re.I)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to