diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:39:28 +0100 |
commit | e2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch) | |
tree | 726f70554b4ca985a09ef6e30a7fdc8df089993c /scraper/thetvdbscraper/thetvdbscraper.h | |
download | vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2 |
git init1.1.103
Diffstat (limited to 'scraper/thetvdbscraper/thetvdbscraper.h')
-rw-r--r-- | scraper/thetvdbscraper/thetvdbscraper.h | 39 |
1 files changed, 39 insertions, 0 deletions
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 <iostream> +#include <string> +#include <sstream> +#include <vector> +#include <map> +#include <set> +#include <libxml/parser.h> +#include <libxml/tree.h> +#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<int> *updatedSeries, set<int> *updatedEpisodes, int lastScrap); + cTVDBSeries *GetSeries(int seriesID); + cTVDBEpisode *GetEpisode(int episodeID); +}; + + +#endif //__TVSCRAPER_TVDBSCRAPER_H |