diff --git a/oxweb/movieposterdb.py b/oxweb/movieposterdb.py
index 9f8d88c..5dc6d68 100644
--- a/oxweb/movieposterdb.py
+++ b/oxweb/movieposterdb.py
@@ -23,13 +23,14 @@ def getId(url):
def getPostersByUrl(url):
posters = []
html = getUrlUnicode(url)
- results = re.compile('', re.DOTALL).findall(html)
- for result in results:
- posters += getPostersByUrl(result)
- results = re.compile('', re.DOTALL).findall(html)
- for result in results:
- html = getUrlUnicode(result)
- posters.append(findRe(html, '"(http://www.movieposterdb.com/posters/.*?\.jpg)"'))
+ if not "The movie you requested is not found" in html:
+ results = re.compile('', re.DOTALL).findall(html)
+ for result in results:
+ posters += getPostersByUrl(result)
+ results = re.compile('', re.DOTALL).findall(html)
+ for result in results:
+ html = getUrlUnicode(result)
+ posters.append(findRe(html, '"(http://www.movieposterdb.com/posters/.*?\.jpg)"'))
return posters
def getUrl(id):