make csv_file independent of download_folder

This commit is contained in:
KeksNino
2025-09-20 00:07:40 +02:00
committed by GitHub
parent 043fc36a66
commit 2260334965
+2 -2
View File
@@ -6,10 +6,10 @@ download_folder = "YOUR_FILE_DIRECTORY_PATH"
csv_file = "YOUR_CSV_FILE_PATH" csv_file = "YOUR_CSV_FILE_PATH"
playlist_tracks = set() playlist_tracks = set()
with open(download_folder + csv_file, newline='', encoding='utf-8') as f: with open(csv_file, newline='', encoding='utf-8') as f:
reader = csv.reader(f) reader = csv.reader(f)
for row in reader: for row in reader:
row = row[:-1]y row = row[:-1]
filename = f"{row[1]} - {row[0]}.mp3" filename = f"{row[1]} - {row[0]}.mp3"
playlist_tracks.add(filename) playlist_tracks.add(filename)