summaryrefslogtreecommitdiff
path: root/scraper/themoviedbscraper/themoviedbscraper.h
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/themoviedbscraper/themoviedbscraper.h')
-rw-r--r--scraper/themoviedbscraper/themoviedbscraper.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/scraper/themoviedbscraper/themoviedbscraper.h b/scraper/themoviedbscraper/themoviedbscraper.h
new file mode 100644
index 0000000..d2f449e
--- /dev/null
+++ b/scraper/themoviedbscraper/themoviedbscraper.h
@@ -0,0 +1,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