mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
NowPlaying.dll: Added support for types NUMBER and YEAR
This commit is contained in:
@ -397,6 +397,12 @@ void CPlayerWMP::UpdateData()
|
||||
m_Rating = rating;
|
||||
}
|
||||
|
||||
spMedia->getItemInfo(CComBSTR(L"WM/TrackNumber"), &val);
|
||||
m_Number = (UINT)_wtoi(val);
|
||||
|
||||
spMedia->getItemInfo(CComBSTR(L"WM/Year"), &val);
|
||||
m_Year = (UINT)_wtoi(val);
|
||||
|
||||
double duration;
|
||||
spMedia->get_duration(&duration);
|
||||
m_Duration = (UINT)duration;
|
||||
|
Reference in New Issue
Block a user