mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
NowPlayingPlugin:
- Added preliminary support to display lyrics (PlayerType=LYRICS) - Applied r825 fix on TrackChangeAction= (sends bang to correct window without the need of #CURRENTCONFIG#) - Some refactoring
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
#include "StdAfx.h"
|
||||
#include "PlayerSpotify.h"
|
||||
|
||||
extern CPlayer* g_Spotify;
|
||||
CPlayer* CPlayerSpotify::c_Player = NULL;
|
||||
|
||||
/*
|
||||
** CPlayerSpotify
|
||||
@ -40,7 +40,23 @@ CPlayerSpotify::CPlayerSpotify() : CPlayer(),
|
||||
*/
|
||||
CPlayerSpotify::~CPlayerSpotify()
|
||||
{
|
||||
g_Spotify = NULL;
|
||||
c_Player = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
** Create
|
||||
**
|
||||
** Creates a shared class object.
|
||||
**
|
||||
*/
|
||||
CPlayer* CPlayerSpotify::Create()
|
||||
{
|
||||
if (!c_Player)
|
||||
{
|
||||
c_Player = new CPlayerSpotify();
|
||||
}
|
||||
|
||||
return c_Player;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -98,6 +114,11 @@ void CPlayerSpotify::UpdateData()
|
||||
m_Title = track;
|
||||
m_Artist = artist;
|
||||
++m_TrackCount;
|
||||
|
||||
if (m_HasLyricsMeasure)
|
||||
{
|
||||
FindLyrics();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user