aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@kodi.tv>2015-04-07 10:16:52 +0200
committerMatthias Kortstiege <mkortstiege@kodi.tv>2015-04-11 20:08:21 +0200
commit539dbf702fa56e9a1fe80efba05febbb6b984b12 (patch)
tree00dabddfa506029c82ac3bdb606fc9ebdcba9c85
parentc79606ed11be8d88c9b6976323a68ea71935aaaf (diff)
[videoinfodownloader] adds scrapers GetArtwork method
-rw-r--r--xbmc/video/VideoInfoDownloader.cpp5
-rw-r--r--xbmc/video/VideoInfoDownloader.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/xbmc/video/VideoInfoDownloader.cpp b/xbmc/video/VideoInfoDownloader.cpp
index b1b507409c..de7786340d 100644
--- a/xbmc/video/VideoInfoDownloader.cpp
+++ b/xbmc/video/VideoInfoDownloader.cpp
@@ -156,6 +156,11 @@ int CVideoInfoDownloader::FindMovie(const std::string &strMovie,
return success;
}
+bool CVideoInfoDownloader::GetArtwork(CVideoInfoTag &details)
+{
+ return m_info->GetArtwork(*m_http, details);
+}
+
bool CVideoInfoDownloader::GetDetails(const CScraperUrl &url,
CVideoInfoTag &movieDetails,
CGUIDialogProgress *pProgress /* = NULL */)
diff --git a/xbmc/video/VideoInfoDownloader.h b/xbmc/video/VideoInfoDownloader.h
index 2df40a1ddf..1651eba2c5 100644
--- a/xbmc/video/VideoInfoDownloader.h
+++ b/xbmc/video/VideoInfoDownloader.h
@@ -54,6 +54,13 @@ public:
\return 1 on success, -1 on a scraper-specific error, 0 on some other error
*/
int FindMovie(const std::string& strMovie, MOVIELIST& movielist, CGUIDialogProgress *pProgress = NULL);
+
+ /*! \brief Fetch art URLs for an item with our scraper
+ \param details the video info tag structure to fill with art.
+ \return true on success, false on failure.
+ */
+ bool GetArtwork(CVideoInfoTag &details);
+
bool GetDetails(const CScraperUrl& url, CVideoInfoTag &movieDetails, CGUIDialogProgress *pProgress = NULL);
bool GetEpisodeDetails(const CScraperUrl& url, CVideoInfoTag &movieDetails, CGUIDialogProgress *pProgress = NULL);
bool GetEpisodeList(const CScraperUrl& url, VIDEO::EPISODELIST& details, CGUIDialogProgress *pProgress = NULL);