Added saving release date
This commit is contained in:
parent
4f844868cd
commit
262f8b5d71
17
main.cpp
17
main.cpp
@ -731,6 +731,20 @@ bool tag_FLAC(const string& path, const string& filename, bool is_single_dir,
|
|||||||
return system_command(cmd);
|
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,
|
bool full_donwload(const string& path, const string& release_prefix,
|
||||||
int release_num, const string& release_suffix)
|
int release_num, const string& release_suffix)
|
||||||
{
|
{
|
||||||
@ -777,6 +791,9 @@ bool full_donwload(const string& path, const string& release_prefix,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save Release Date
|
||||||
|
save_release_date(release_dir, info["Release"]["ReleaseDate"]);
|
||||||
|
|
||||||
is_single_dir = (info["Tracks"].size() == 1);
|
is_single_dir = (info["Tracks"].size() == 1);
|
||||||
|
|
||||||
// Make MP3 & FLAC Folders (If more than 1 Track)
|
// Make MP3 & FLAC Folders (If more than 1 Track)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user