Added release prefix as a subfolder. Added release suffix to folder name.
This commit is contained in:
parent
588925cee8
commit
82cc90c713
12
main.cpp
12
main.cpp
@ -300,14 +300,18 @@ string num_to_str(int num, int precision)
|
||||
return result;
|
||||
}
|
||||
|
||||
string get_release_dir_name(const string& main_path, int release_num,
|
||||
const string& artist, const string& title, int precision)
|
||||
string get_release_dir_name(const string& main_path, const string& release_prefix,
|
||||
int release_num, const string& release_suffix, const string& artist,
|
||||
const string& title, int precision)
|
||||
{
|
||||
string path;
|
||||
|
||||
path = main_path;
|
||||
path += FOLDER_DELIM;
|
||||
path += release_prefix;
|
||||
path += FOLDER_DELIM;
|
||||
path += num_to_str(release_num, precision);
|
||||
path += release_suffix;
|
||||
path += " - ";
|
||||
|
||||
if ((artist != "Monstercat") && (artist != "Various Artists"))
|
||||
@ -760,8 +764,8 @@ bool full_donwload(const string& path, const string& release_prefix,
|
||||
info = parse_json_file(RELEASE_JSON);
|
||||
|
||||
release_artist_title = get_artist_title(info["Release"]);
|
||||
release_dir = get_release_dir_name(path, release_num,
|
||||
release_artist_title.first, release_artist_title.second,
|
||||
release_dir = get_release_dir_name(path, release_prefix, release_num,
|
||||
release_suffix, release_artist_title.first, release_artist_title.second,
|
||||
release_precision);
|
||||
|
||||
// Make Release Folder
|
||||
|
||||
Loading…
Reference in New Issue
Block a user