summaryrefslogtreecommitdiff
path: root/scraper/thetvdbscraper/tvdbepisode.h
blob: 945278b2a6f0b2f4407ddeac7b9f08ddde08550c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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