Subsonic API: added getLyrics/getLyricsBySongId support, ref #379

This commit is contained in:
emeric
2024-10-26 19:04:11 +02:00
parent 72b1367ea6
commit 2d28ea61eb
13 changed files with 238 additions and 6 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ namespace lms::db
assert(filePath.is_relative());
assert(_absoluteFilePath.filename() == filePath.filename()); // must be compatible with previous setAbsoluteFilePath call
_fileStem = filePath.stem(); // lazy migration (_fileStem added later, could be set only with setAbsoluteFilePath)
_fileStem = filePath.stem(); // lazy migration (_fileStem added later, could be set only with setAbsoluteFilePath)
_relativeFilePath = filePath;
}
@@ -61,6 +61,10 @@ namespace lms::db
std::string_view getFileStem() const { return _fileStem; }
const Wt::WDateTime& getLastWriteTime() const { return _fileLastWrite; }
std::size_t getFileSize() const { return _fileSize; }
std::string_view getLanguage() const { return _language; }
std::string_view getDisplayArtist() const { return _displayArtist; }
std::string_view getDisplayTitle() const { return _displayTitle; }
std::chrono::milliseconds getOffset() const { return _offset; }
bool isSynchronized() const { return _synchronized; }
SynchronizedLines getSynchronizedLines() const;
std::vector<std::string> getUnsynchronizedLines() const;