Add copyright/copyrightURL support and display it in the release view
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user