Add support for fetching lyrics in background for selected songs

This commit is contained in:
Andrzej Rybczak
2016-11-21 11:47:13 +01:00
parent 5b56c48c4a
commit 00f70e23e6
6 changed files with 35 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ enum class Type
ToggleBrowserSortMode,
ToggleLibraryTagType,
ToggleMediaLibrarySortMode,
FetchLyricsInBackground,
RefetchLyrics,
SetSelectedItemsPriority,
ToggleOutput,
@@ -1163,6 +1164,18 @@ private:
virtual void run() override;
};
struct FetchLyricsInBackground: BaseAction
{
FetchLyricsInBackground()
: BaseAction(Type::FetchLyricsInBackground, "fetch_lyrics_in_background") { }
private:
virtual bool canBeRun() override;
virtual void run() override;
HasSongs *m_hs;
};
struct RefetchLyrics: BaseAction
{
RefetchLyrics(): BaseAction(Type::RefetchLyrics, "refetch_lyrics") { }