better little info but do not fail on imdbpro locked imdb pages
This commit is contained in:
parent
963d95ec0d
commit
f24a6ae4e7
1 changed files with 12 additions and 11 deletions
|
|
@ -8,7 +8,6 @@ import re, time
|
|||
import os
|
||||
import time
|
||||
|
||||
from elementtree.ElementTree import parse, tostring
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
|
||||
from google import google
|
||||
|
|
@ -412,7 +411,9 @@ class IMDb:
|
|||
|
||||
def parseReleaseinfo(self):
|
||||
soup = BeautifulSoup(self.getReleaseinfo())
|
||||
for row in soup('table',{'border': '0', 'cellpadding':'2'})[0]('tr'):
|
||||
info = soup('table',{'border': '0', 'cellpadding':'2'})
|
||||
if info:
|
||||
for row in info[0]('tr'):
|
||||
d = row('td', {'align':'right'})
|
||||
if d:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue