Browse Source

Add 8 digit imdb_id

pull/7316/head
Clinton Hall 5 years ago
committed by GitHub
parent
commit
9472e93aa6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      couchpotato/core/helpers/variable.py

2
couchpotato/core/helpers/variable.py

@ -194,7 +194,7 @@ def getImdb(txt, check_inside = False, multiple = False):
output.close() output.close()
try: try:
ids = re.findall('(tt\d{4,7})', 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%07d' % tryInt(x[2:]) for x in ids]) if len(ids) > 0 else []

Loading…
Cancel
Save