Better variable naming

Thanks to DxCx
This commit is contained in:
Ruud
2011-12-16 22:34:33 +01:00
parent a6f9ad6330
commit 224d1527e1
19 changed files with 96 additions and 95 deletions
+3 -4
View File
@@ -67,10 +67,9 @@ def getImdb(txt):
output.close()
try:
m = re.search('(?P<id>tt[0-9{7}]+)', txt)
id = m.group('id')
if id: return id
except AttributeError:
id = re.findall('imdb\.com\/title\/tt(\d{7})', txt)[0]
return id
except IndexError:
pass
return False