Updates
Updating required flags for uploading a song with metadata
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "Models/Song.h"
|
||||
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
using std::string;
|
||||
|
||||
namespace Models
|
||||
{
|
||||
string Song::toMetadataJson()
|
||||
{
|
||||
nlohmann::json s;
|
||||
s["title"] = this->title;
|
||||
|
||||
return s.dump();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user