diff options
-rwxr-xr-x | jamos | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |