Well, imdb stopped working for everyone apparantly, due to a small change in 
the way imdb displays search results. I fixed it and it's confirmed working 
on 1.5.2, 1.5.1 and today's CVS afaik. 
The Regexp part could be a tiny little better, but it already took me a lot 
off trouble to fix it, so i am happy it works now :)

HF
den_RDC

PS. The diff attached is against CVS, but should work for releases too.
Index: src/util/fxdimdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fxdimdb.py,v
retrieving revision 1.9
diff -r1.9 fxdimdb.py
165,170d164
<         
<         regexp_type  = re.compile(r'''
<         <H2><A[ ]NAME=.*?>
<         (?P<type>.*?)     # Most popular searches/Movies/TV-Movies/Video Games etc.
<         </A></H2>
<         ''', re.VERBOSE)
175c169,170
<         (?P<title>   .*?)\s*                  # imdb movie title
---
>         (?P<title>   .*?)                  # imdb movie title
>         </A>[ ]
178c173
<         \)</A>
---
>         \)<
181c176
<         type = ''
---
> 
183,189c178,179
<             m = regexp_type.match(line)
<             if m:
<                 type = m.group('type')
<                 # delete plural s
<                 if type in ('Movies', 'TV-Movies'):
<                     type = type[:-1]
<     
---
>             type="Movie"
> 
192c182
<             if m and not type == 'Video Games':
---
>             if m:
195c185,192
<                 year = m.group('year')
---
>                 yeartype = m.group('year')
> 
>                 if len(yeartype) > 4:
>                     year=yeartype.split("(")[0][0:-2]
>                     type=yeartype.split("(")[1]
>                 else:
>                     year=yeartype
> 

Reply via email to