summaryrefslogtreecommitdiff
path: root/scraper/themoviedbscraper/themoviedbscraper.h
blob: d2f449e34f7e091c153e30e212816a0a91da96cd (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
#ifndef __TVSCRAPER_MOVIEDBSCRAPER_H
#define __TVSCRAPER_MOVIEDBSCRAPER_H

#include "moviedbmovie.h"
#include "moviedbactor.h"

using namespace std;

// --- cMovieDBScraper -------------------------------------------------------------

class cMovieDBScraper {
private:
    string apiKey;
    string language;
    string baseURL;
    string imageUrl;
    string posterSize;
    string backdropSize;
    string actorthumbSize;
    bool parseJSON(string jsonString);
    int SearchMovie(string movieName, string year);
public:
    cMovieDBScraper(string language);
    virtual ~cMovieDBScraper(void);
    bool Connect(void);
    cMovieDbMovie *Scrap(string movieName, string year="");
    cMovieDbMovie *ReadMovie(int movieID);
};


#endif //__TVSCRAPER_MOVIEDBSCRAPER_H