Ruud Burger
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
couchpotato/core/helpers/variable.py
|
@ -197,9 +197,9 @@ def getImdb(txt, check_inside = False, multiple = False): |
|
|
ids = re.findall('(tt\d{4,8})', txt) |
|
|
ids = re.findall('(tt\d{4,8})', txt) |
|
|
|
|
|
|
|
|
if multiple: |
|
|
if multiple: |
|
|
return removeDuplicate(['tt%07d' % tryInt(x[2:]) for x in ids]) if len(ids) > 0 else [] |
|
|
return removeDuplicate(['tt%08d' % tryInt(x[2:]) for x in ids]) if len(ids) > 0 else [] |
|
|
|
|
|
|
|
|
return 'tt%07d' % tryInt(ids[0][2:]) |
|
|
return 'tt%08d' % tryInt(ids[0][2:]) |
|
|
except IndexError: |
|
|
except IndexError: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|