From d0c07ff2221853d87abcf9b0646e98f073664187 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Nov 2007 15:51:56 +0000 Subject: [PATCH] trailer --- scrapeit/imdb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 23f3eb1..4a8952d 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -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]