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]