browser: read tags from local songs

This commit is contained in:
Andrzej Rybczak
2012-08-29 18:45:58 +02:00
parent c14b0d3b3b
commit b77466cc38
11 changed files with 50 additions and 49 deletions

View File

@@ -152,6 +152,20 @@ void MutableSong::setNewURI(const std::string &value)
m_uri = value;
}
unsigned MutableSong::getDuration() const
{
if (m_duration > 0)
return m_duration;
else
return Song::getDuration();
}
void MutableSong::setDuration(unsigned int duration)
{
m_duration = duration;
}
void MutableSong::setTag(SetFunction set, const std::string &value, const std::string &delimiter)
{
auto tags = split(value, delimiter);