diff --git a/main.cpp b/main.cpp index ea31710..38450f9 100644 --- a/main.cpp +++ b/main.cpp @@ -731,6 +731,20 @@ bool tag_FLAC(const string& path, const string& filename, bool is_single_dir, return system_command(cmd); } +void save_release_date(const string& path, const string& date) +{ + ofstream file; + string filepath; + + filepath = path; + filepath += FOLDER_DELIM; + filepath += "Date.txt"; + + file.open(filepath); + file << date << endl; + file.close(); +} + bool full_donwload(const string& path, const string& release_prefix, int release_num, const string& release_suffix) { @@ -777,6 +791,9 @@ bool full_donwload(const string& path, const string& release_prefix, return false; } + // Save Release Date + save_release_date(release_dir, info["Release"]["ReleaseDate"]); + is_single_dir = (info["Tracks"].size() == 1); // Make MP3 & FLAC Folders (If more than 1 Track)