removes empty entries before writing playlist file
This commit is contained in:
@ -30,6 +30,7 @@ def main():
|
|||||||
os.makedirs(daylist_path)
|
os.makedirs(daylist_path)
|
||||||
daylist_file = single_date.strftime("%Y") + "-" + single_date.strftime("%m") + "-" + single_date.strftime("%d") + ".json"
|
daylist_file = single_date.strftime("%Y") + "-" + single_date.strftime("%m") + "-" + single_date.strftime("%d") + ".json"
|
||||||
with open(daylist_path + daylist_file, "w") as file:
|
with open(daylist_path + daylist_file, "w") as file:
|
||||||
|
daylist = daylist.replace("{},\n","")
|
||||||
file.write(daylist)
|
file.write(daylist)
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
|
Reference in New Issue
Block a user