To a proper random string when no IMDB is found
This commit is contained in:
@@ -2,7 +2,9 @@ from couchpotato.core.logger import CPLog
|
||||
import hashlib
|
||||
import os.path
|
||||
import platform
|
||||
import random
|
||||
import re
|
||||
import string
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
@@ -117,3 +119,6 @@ def getTitle(library_dict):
|
||||
log.error('Could not get title for library item: %s' % library_dict)
|
||||
return None
|
||||
|
||||
def randomString(size = 8, chars = string.ascii_uppercase + string.digits):
|
||||
return ''.join(random.choice(chars) for x in range(size))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user