imdb check

This commit is contained in:
j 2019-07-23 17:42:56 +02:00
commit ec3175d885
2 changed files with 9 additions and 5 deletions

View file

@ -103,3 +103,7 @@ def normalize_dict(encoding, data):
elif isinstance(data, list):
return [normalize_dict(encoding, value) for value in data]
return data
def is_imdb_id(id):
return bool(len(id) >= 7 and str(id).isdigit())