From 317ff262c3b656a186deb8aa0fcf5560c58191df Mon Sep 17 00:00:00 2001 From: fiso64 Date: Fri, 4 Oct 2024 16:35:29 +0200 Subject: [PATCH] --title-col --- slsk-batchdl/Config.cs | 5 +++-- slsk-batchdl/Extractors/Csv.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/slsk-batchdl/Config.cs b/slsk-batchdl/Config.cs index 9279dde..b20aef0 100644 --- a/slsk-batchdl/Config.cs +++ b/slsk-batchdl/Config.cs @@ -34,7 +34,7 @@ public class Config public string password = ""; public string artistCol = ""; public string albumCol = ""; - public string trackCol = ""; + public string titleCol = ""; public string ytIdCol = ""; public string descCol = ""; public string trackCountCol = ""; @@ -713,7 +713,8 @@ public class Config break; case "--tc": case "--track-col": - trackCol = args[++i]; + case "--title-col": + titleCol = args[++i]; break; case "--alc": case "--album-col": diff --git a/slsk-batchdl/Extractors/Csv.cs b/slsk-batchdl/Extractors/Csv.cs index 679ff7a..64c3f13 100644 --- a/slsk-batchdl/Extractors/Csv.cs +++ b/slsk-batchdl/Extractors/Csv.cs @@ -23,7 +23,7 @@ namespace Extractors csvFilePath = input; - var tracks = await ParseCsvIntoTrackInfo(input, Config.I.artistCol, Config.I.trackCol, Config.I.lengthCol, + var tracks = await ParseCsvIntoTrackInfo(input, Config.I.artistCol, Config.I.titleCol, Config.I.lengthCol, Config.I.albumCol, Config.I.descCol, Config.I.ytIdCol, Config.I.trackCountCol, Config.I.timeUnit, Config.I.ytParse); if (reverse)