From 3c334f22c55ca1a034c0977a3ddc26d74d709515 Mon Sep 17 00:00:00 2001 From: Sundog Date: Fri, 6 Oct 2023 14:37:56 -0400 Subject: [PATCH] removes empty entries before writing playlist file --- mt_clockwheel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mt_clockwheel.py b/mt_clockwheel.py index d312677..77028b6 100644 --- a/mt_clockwheel.py +++ b/mt_clockwheel.py @@ -30,6 +30,7 @@ def main(): os.makedirs(daylist_path) daylist_file = single_date.strftime("%Y") + "-" + single_date.strftime("%m") + "-" + single_date.strftime("%d") + ".json" with open(daylist_path + daylist_file, "w") as file: + daylist = daylist.replace("{},\n","") file.write(daylist) if verbose: