2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "MusicArtistInfo.h"
11 #include "addons/Scraper.h"
13 using namespace XFILE
;
14 using namespace MUSIC_GRABBER
;
16 CMusicArtistInfo::CMusicArtistInfo(const std::string
& strArtist
, const CScraperUrl
& strArtistURL
):
17 m_artistURL(strArtistURL
)
19 m_artist
.strArtist
= strArtist
;
23 void CMusicArtistInfo::SetArtist(const CArtist
& artist
)
29 bool CMusicArtistInfo::Load(CCurlFile
& http
, const ADDON::ScraperPtr
& scraper
,
30 const std::string
&strSearch
)
32 return m_bLoaded
= scraper
->GetArtistDetails(http
, m_artistURL
, strSearch
, m_artist
);