diff --git a/pandora/archive/external.py b/pandora/archive/external.py index 3683b2eda..90aa3b060 100644 --- a/pandora/archive/external.py +++ b/pandora/archive/external.py @@ -55,9 +55,9 @@ def get_info(url): for k in info_keys if k in i and i[k] }) - if not 'tags' in info[-1]: + if 'tags' not in info[-1]: info[-1]['tags'] = [] - if 'upload_date' in i: + if 'upload_date' in i and i['upload_date']: info[-1]['date'] = '-'.join([i['upload_date'][:4], i['upload_date'][4:6], i['upload_date'][6:]]) return info