summaryrefslogtreecommitdiff
path: root/services/tvscraper.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-08-25 13:57:10 +0200
committerlouis <louis.braun@gmx.de>2013-08-25 13:57:10 +0200
commit9eabdcd20960924b690d6820691c6159618d18e7 (patch)
tree522dcf224f2aaa1f8bee92ca4ecaec35fc71ed4a /services/tvscraper.h
parentc545f6b4cfc4c8fe604eb216fb1d8c86550e74ca (diff)
downloadvdr-plugin-tvguide-9eabdcd20960924b690d6820691c6159618d18e7.tar.gz
vdr-plugin-tvguide-9eabdcd20960924b690d6820691c6159618d18e7.tar.bz2
Added tvscraper support
Diffstat (limited to 'services/tvscraper.h')
-rw-r--r--services/tvscraper.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/services/tvscraper.h b/services/tvscraper.h
new file mode 100644
index 0000000..fc278ad
--- /dev/null
+++ b/services/tvscraper.h
@@ -0,0 +1,56 @@
+enum tvMediaType {
+ typeSeries,
+ typeMovie,
+ typeNone,
+};
+
+struct tvMedia {
+ std::string path;
+ int width;
+ int height;
+};
+
+struct tvActor {
+ std::string name;
+ std::string role;
+ tvMedia thumb;
+};
+
+// Data structure for service "TVScraper-GetPosterOrBanner"
+struct TVScraperGetPosterOrBanner
+{
+// in
+ const cEvent *event; // search image for this event
+//out
+ tvMediaType type; //typeSeries or typeMovie
+ tvMedia media; //banner or poster
+};
+
+// Data structure for service "TVScraper-GetPoster"
+struct TVScraperGetPoster
+{
+// in
+ const cEvent *event; // search image for this event
+ bool isRecording; // search in current EPG or recordings
+//out
+ tvMedia media; //poster
+};
+
+
+/* Data structure for service "TVScraper-GetFullEPGInformation"
+if type == typeMovie a poster and a fanart image is delivered
+if type == typeSeries a banner and up to three posters and fanarts are delivered
+*/
+struct TVScraperGetFullInformation
+{
+// in
+ const cEvent *event; // search all media for this event
+ bool isRecording; // search in current EPG or recordings
+//out
+ tvMediaType type;
+ tvMedia banner;
+ std::vector<tvMedia> posters;
+ std::vector<tvMedia> fanart;
+ std::vector<tvActor> actors;
+ std::string description;
+}; \ No newline at end of file