Added saving release date

This commit is contained in:
DWW 2022-08-25 16:40:20 +03:00
parent 4f844868cd
commit 262f8b5d71

View File

@ -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)