This commit is contained in:
j 2007-11-30 15:51:56 +00:00
parent 482599169b
commit d0c07ff222

View file

@ -274,7 +274,7 @@ class IMDb:
IMDbDict['release_date'] = self.parseReleaseinfo()
IMDbDict['business'] = self.parseBusiness()
IMDbDict['reviews'] = self.parseExternalreviews()
#IMDbDict['trailers'] = self.parseTrailers()
#IMDbDict['trailer'] = self.parseTrailer()
self.IMDbDict = IMDbDict
if IMDbDict['episode_of']:
@ -495,14 +495,14 @@ class IMDb:
return ret
return {}
def getTrailers(self, forcereload = False):
def getTrailer(self, forcereload = False):
if forcereload or not self.trailerSource:
self.trailerSource = read_url_utf8(self.trailerUrl)
return self.trailerSource
def parseTrailers(self):
def parseTrailer(self):
ret = {}
soup = BeautifulSoup(self.getTrailers())
soup = BeautifulSoup(self.getTrailer())
for p in soup('p'):
if p('a') and p.firstText():
a = p('a')[0]