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/tvdbepisode.h | |
download | vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2 |
git init1.1.103
Diffstat (limited to 'scraper/thetvdbscraper/tvdbepisode.h')
-rw-r--r-- | scraper/thetvdbscraper/tvdbepisode.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/scraper/thetvdbscraper/tvdbepisode.h b/scraper/thetvdbscraper/tvdbepisode.h new file mode 100644 index 0000000..945278b --- /dev/null +++ b/scraper/thetvdbscraper/tvdbepisode.h @@ -0,0 +1,45 @@ +#ifndef __TVSCRAPER_TVDBEPISODE_H +#define __TVSCRAPER_TVDBEPISODE_H + +#include <iostream> +#include <string> +#include <sstream> +#include <vector> +#include <libxml/parser.h> +#include <libxml/tree.h> +#include "tvdbmirrors.h" + +using namespace std; + +// --- cTVDBEpisode ------------------------------------------------------------- +class cTVDBEpisode { +private: + string apiKey; + cTVDBMirrors *mirrors; + string language; + void ParseXML(string xml); +public: + cTVDBEpisode(void); + cTVDBEpisode(int ID, string language, string apiKey, cTVDBMirrors *mirrors); + int id; + int seriesID; + int number; + int season; + int combinedSeason; + int combinedEpisode; + string name; + string firstAired; + string guestStars; + string overview; + float rating; + string imageUrl; + int width; + int height; + int imgFlag; + int seasonId; + int lastUpdated; + void ReadEpisode(void); + void ReadEpisodeFromXML(xmlDoc *myDoc, xmlNode *node, cTVDBMirrors *mirrors); + void Dump(); +}; +#endif //cTVDBEpisode |