Add copyright/copyrightURL support and display it in the release view

This commit is contained in:
emeric
2018-09-21 14:00:15 +02:00
parent c464200644
commit f5f6136159
13 changed files with 139 additions and 19 deletions
+3 -4
View File
@@ -178,15 +178,14 @@ Grabber::getFromTrack(Wt::Dbo::Session& session, Database::IdType trackId, std::
Track::pointer track = Track::getById(session, trackId);
if (track)
{
Track::CoverType coverType = track->getCoverType();
bool hasCover = track->hasCover();
boost::filesystem::path trackPath = track->getPath();
transaction.commit();
if (coverType == Track::CoverType::Embedded)
if (hasCover)
cover = getFromTrack(trackPath);
if (!cover)
else
cover = getFromDirectory(trackPath.parent_path());
}
}