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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user