Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv4906
Modified Files:
fxdimdb.py
Log Message:
fix poster download
Index: fxdimdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/fxdimdb.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** fxdimdb.py 3 Oct 2003 16:46:13 -0000 1.19
--- fxdimdb.py 9 Nov 2003 12:51:21 -0000 1.20
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.20 2003/11/09 12:51:21 dischi
+ # fix poster download
+ #
# Revision 1.19 2003/10/03 16:46:13 dischi
# moved the encoding type (latin-1) to the config file config.LOCALE
***************
*** 737,741 ****
# return #(title, info, image_urls)
! url = 'http://us.imdb.com/Posters?%s' % id
req = urllib2.Request(url, txdata, txheaders)
try:
--- 740,744 ----
# return #(title, info, image_urls)
! url = 'http://us.imdb.com/title/tt%s/posters' % id
req = urllib2.Request(url, txdata, txheaders)
try:
***************
*** 744,749 ****
print error
return (self.title, self.info, self.image_urls)
!
! for line in r.read().split("\n"):
m = regexp_url.match(line)
if m:
--- 747,753 ----
print error
return (self.title, self.info, self.image_urls)
!
! data = r.read().replace('</a>', '\n').replace('</A>', '\n')
! for line in data.split('\n'):
m = regexp_url.match(line)
if m:
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog