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/tvdbactor.h | |
download | vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2 |
git init1.1.103
Diffstat (limited to 'scraper/thetvdbscraper/tvdbactor.h')
-rw-r--r-- | scraper/thetvdbscraper/tvdbactor.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/scraper/thetvdbscraper/tvdbactor.h b/scraper/thetvdbscraper/tvdbactor.h new file mode 100644 index 0000000..ed77199 --- /dev/null +++ b/scraper/thetvdbscraper/tvdbactor.h @@ -0,0 +1,54 @@ +#ifndef __TVSCRAPER_TVDBACTORS_H +#define __TVSCRAPER_TVDBACTORS_H + +#include <iostream> +#include <string> +#include <sstream> +#include <vector> +#include <libxml/parser.h> +#include <libxml/tree.h> +#include "tvdbmirrors.h" + +using namespace std; + +// --- cTVDBActor ------------------------------------------------------------- +class cTVDBActor { +public: + cTVDBActor(void) { + thumbUrl = ""; + name = ""; + role = ""; + id = 0; + sortOrder = 0; + thumbUrlWidth = 300; + thumbUrlHeight = 450; + }; + string thumbUrl; + int thumbUrlWidth; + int thumbUrlHeight; + string name; + string role; + int id; + int sortOrder; + void Dump() { + cout << "Actor name: " << name << ", ID: " << id << endl; + cout << "Actor role: " << role << endl; + cout << "Actor thumb: " << thumbUrl << endl; + cout << "Actor SortOrder: " << sortOrder << endl; + } +}; + +// --- cTVDBActors -------------------------------------------------------- + +class cTVDBActors { +private: + cTVDBMirrors *mirrors; + string language; + cTVDBActor *ReadEntry(xmlDoc *doc, xmlNode *node); +public: + cTVDBActors(string language, cTVDBMirrors *mirrors); + virtual ~cTVDBActors(void); + void ParseXML(string xml, vector<cTVDBActor*> *actors); +}; + +#endif //__TVSCRAPER_TVDBACTORS_H |