From e2a48d8701f91b8e24fbe9e99e91eb72a87bb749 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 5 Mar 2017 16:39:28 +0100 Subject: git init --- scraper/thetvdbscraper/thetvdbscraper.h | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scraper/thetvdbscraper/thetvdbscraper.h (limited to 'scraper/thetvdbscraper/thetvdbscraper.h') diff --git a/scraper/thetvdbscraper/thetvdbscraper.h b/scraper/thetvdbscraper/thetvdbscraper.h new file mode 100644 index 0000000..051842c --- /dev/null +++ b/scraper/thetvdbscraper/thetvdbscraper.h @@ -0,0 +1,39 @@ +#ifndef __TVSCRAPER_TVDBSCRAPER_H +#define __TVSCRAPER_TVDBSCRAPER_H +#include +#include +#include +#include +#include +#include +#include +#include +#include "tvdbseries.h" +#include "tvdbmirrors.h" + +using namespace std; + +// --- cTVDBScraper ------------------------------------------------------------- + +class cTVDBScraper { +private: + string apiKey; + string baseURL; + string language; + cTVDBMirrors *mirrors; + xmlDoc *SetXMLDoc(string xml); + int ParseXML(string xml); + int ReadSeries(string seriesName); +public: + cTVDBScraper(string language); + virtual ~cTVDBScraper(void); + bool Connect(void); + int GetServerTime(void); + cTVDBSeries *ScrapInitial(string seriesName); + bool GetUpdatedSeriesandEpisodes(set *updatedSeries, set *updatedEpisodes, int lastScrap); + cTVDBSeries *GetSeries(int seriesID); + cTVDBEpisode *GetEpisode(int episodeID); +}; + + +#endif //__TVSCRAPER_TVDBSCRAPER_H -- cgit v1.2.3