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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
string get_release_dir_name(const string& main_path, int release_num,
|
string get_release_dir_name(const string& main_path, const string& release_prefix,
|
||||||
const string& artist, const string& title, int precision)
|
int release_num, const string& release_suffix, const string& artist,
|
||||||
|
const string& title, int precision)
|
||||||
{
|
{
|
||||||
string path;
|
string path;
|
||||||
|
|
||||||
path = main_path;
|
path = main_path;
|
||||||
path += FOLDER_DELIM;
|
path += FOLDER_DELIM;
|
||||||
|
path += release_prefix;
|
||||||
|
path += FOLDER_DELIM;
|
||||||
path += num_to_str(release_num, precision);
|
path += num_to_str(release_num, precision);
|
||||||
|
path += release_suffix;
|
||||||
path += " - ";
|
path += " - ";
|
||||||
|
|
||||||
if ((artist != "Monstercat") && (artist != "Various Artists"))
|
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);
|
info = parse_json_file(RELEASE_JSON);
|
||||||
|
|
||||||
release_artist_title = get_artist_title(info["Release"]);
|
release_artist_title = get_artist_title(info["Release"]);
|
||||||
release_dir = get_release_dir_name(path, release_num,
|
release_dir = get_release_dir_name(path, release_prefix, release_num,
|
||||||
release_artist_title.first, release_artist_title.second,
|
release_suffix, release_artist_title.first, release_artist_title.second,
|
||||||
release_precision);
|
release_precision);
|
||||||
|
|
||||||
// Make Release Folder
|
// Make Release Folder
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user