summaryrefslogtreecommitdiff
path: root/jamos
diff options
context:
space:
mode:
Diffstat (limited to 'jamos')
-rwxr-xr-xjamos3
1 files changed, 2 insertions, 1 deletions
diff --git a/jamos b/jamos
index bca6f0c..0783e70 100755
--- a/jamos
+++ b/jamos
@@ -171,7 +171,8 @@ def get_song_metadata_from_json(json, counter):
if ('title' in json.keys()) and (json['title'] is not None):
metadata['title'] = json['title']
- if ('release_date' in json.keys()):
+ if ('release_date' in json.keys() and
+ json['release_date'] is not None):
metadata['year'] = format_youtube_date(json['release_date'])
artist_for_filename = metadata['artist'].replace(' ', '_').lower()