Add taglib to project to get extra cover data(and possibly replace libgroove for this function). Remove oggs from accepted files until I can figure out cover data for them better. Add non-persisted field for this to audiotrack object and method to add this data to it in memory.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#define AUDIOTRACK_H
|
||||
|
||||
#include <Wt/Dbo/Dbo>
|
||||
#include <taglib/tbytevector.h>
|
||||
|
||||
class AudioTrack
|
||||
{
|
||||
@@ -33,6 +34,10 @@ public:
|
||||
std::string trackFingerprint;
|
||||
std::string trackPath;
|
||||
|
||||
//Non-persisted data
|
||||
TagLib::ByteVector coverArt;
|
||||
std::string coverMimeType;
|
||||
|
||||
template<class Action>
|
||||
void persist(Action& a)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user