From 539dbf702fa56e9a1fe80efba05febbb6b984b12 Mon Sep 17 00:00:00 2001 From: Matthias Kortstiege Date: Tue, 7 Apr 2015 10:16:52 +0200 Subject: [videoinfodownloader] adds scrapers GetArtwork method --- xbmc/video/VideoInfoDownloader.cpp | 5 +++++ xbmc/video/VideoInfoDownloader.h | 7 +++++++ 2 files changed, 12 insertions(+) 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); -- cgit v1.2.3