From 3dd84652d4919fe6ca6c561080c93de4053c7060 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 21 Oct 2022 22:14:25 +0200 Subject: [PATCH] fdasf --- src/download.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/download.py b/src/download.py index edf53a9..0a64e21 100644 --- a/src/download.py +++ b/src/download.py @@ -90,7 +90,8 @@ class Download: self.dataframe = pd.read_csv(os.path.join(self.temp, self.file), index_col=0) for idx, row in self.dataframe.iterrows(): - row['artist'] = json.loads(row['artist'].replace("'", '"')) + row['artist'] = tuple(json.loads(row['artist'].replace("'", '"'))) + if self.path_stuff(row['path'], row['file']): self.write_metadata(row, row['file']) continue @@ -118,7 +119,7 @@ class Download: valid_keys = list(EasyID3.valid_keys.keys()) for key in list(row.keys()): - if key in valid_keys and row[key] is not None and not pd.isna(row[key]): + if key in valid_keys and type(row[key]) == list and not pd.isna(row[key]): # print(key) if type(row[key]) == int or type(row[key]) == float: row[key] = str(row[key])