2 Copyright 2004-2005 Chris Tallon
3 Copyright 2014 Marten Richter
5 This file is part of VOMP.
7 VOMP is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 VOMP is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with VOMP. If not, see <https://www.gnu.org/licenses/>.
24 #include "movieinfo.h"
25 #include "seriesinfo.h"
28 MovieInfo* Event::movieInfo = NULL;
29 SeriesInfo* Event::seriesInfo = NULL;
31 void Event::loadinfos(UINT channelid)
33 VDR* vdr = VDR::getInstance();
34 if (movieInfo) delete movieInfo;
35 if (seriesInfo) delete seriesInfo;
40 if (movieID == 0 && seriesID == 0)
42 vdr->getScraperEventType(channelid, id, movieID, seriesID, episodeID, epgImage);
43 Log::getInstance()->log("Event", Log::DEBUG, "Got Scraper EventType %d %d, %d %d %d %d",
44 id, channelid, movieID, seriesID, episodeID);
47 if (!vdr->isConnected()) Control::getInstance()->connectionLost();
51 movieInfo = vdr->getScraperMovieInfo(movieID);
52 Log::getInstance()->log("Event", Log::DEBUG, "Got Scraper MovieInfo");
54 else if (seriesID != 0)
56 seriesInfo = vdr->getScraperSeriesInfo(seriesID, episodeID);
57 Log::getInstance()->log("Event", Log::DEBUG, "Got Scraper SeriesInfo");
60 if (!vdr->isConnected()) Control::getInstance()->connectionLost();