From 384c643326b78735710bee9b50f39a3152ee8528 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Aug 2016 13:16:30 +0100 Subject: [PATCH] no tags == [] --- pandora/archive/external.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/external.py b/pandora/archive/external.py index 834b6b779..b9bce934a 100644 --- a/pandora/archive/external.py +++ b/pandora/archive/external.py @@ -55,6 +55,8 @@ def get_info(url): for k in info_keys if k in i and i[k] }) + if not 'tags' in info[-1]: + info[-1]['tags'] = [] if 'upload_date' in i: info[-1]['date'] = '-'.join([i['upload_date'][:4], i['upload_date'][4:6], i['upload_date'][6:]]) return info