Return imdbid with 'tt'

This commit is contained in:
Ruud
2011-12-16 23:23:42 +01:00
parent c51c391ced
commit f337b2ed95
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ def getImdb(txt):
output.close()
try:
id = re.findall('imdb\.com\/title\/tt(\d{7})', txt)[0]
id = re.findall('imdb\.com\/title\/(tt\d{7})', txt)[0]
return id
except IndexError:
pass