From 567e7e702da1c2b8c03a4aa5f5b5e77691041ea0 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 30 Apr 2008 00:24:25 +0200 Subject: [PATCH] only quotes not amazon ads --- ox/imdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox/imdb.py b/ox/imdb.py index d957e4d..8c8332d 100644 --- a/ox/imdb.py +++ b/ox/imdb.py @@ -12,7 +12,7 @@ import time from BeautifulSoup import BeautifulSoup import chardet import oxutils -from oxutils import stripTags, htmldecode, findRegexp +from oxutils import stripTags, htmldecode, findRegexp, findString from oxutils.cache import getUrl, getUrlUnicode from oxutils.normalize import normalizeTitle, normalizeImdbId @@ -149,7 +149,7 @@ def getMovieTrailers(imdbId): def getMovieQuotes(imdbId): url = "%s/quotes" % getUrlBase(imdbId) data = getUrlUnicode(url) - quotes = re.compile('(.*?):(.*?)
', re.DOTALL).findall(data) + quotes = re.compile('(.*?):(.*?)
', re.DOTALL).findall(findString(data, '