Fixed issue where if / was not provided in the host value then it would not send the request. Fixed issue where song records are formatted correctly

This commit is contained in:
kdeng00
2019-08-01 20:55:09 -04:00
parent f81b481f38
commit 98748b383c
5 changed files with 40 additions and 46 deletions
+2 -8
View File
@@ -31,23 +31,17 @@ namespace Parsers
auto flags = icaAct.flags;
cout<<"Parsing api"<<endl;
//for (auto flag : flags)
for (auto i =0; i < flags.size(); ++i)
{
auto arg = flags[i].flag;
auto value = flags[i].value;
if (arg.compare("-h") == 0)
{
api.url = value;
}
if (value.compare("-h") == 0)
{
api.url = flags[i + 1].value;
api.url = (value[value.size()-1 == '/']) ? value : value + "/";
break;
}
cout<<"url is "<<api.url<<endl;
}
// TODO: For now I will hard code