- introduce mdb-tools (taken from mdb-imdb)

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-03 23:16:52 +02:00
committed by Thilo Graf
parent 287c965a58
commit 2ce09f87f6
6 changed files with 157 additions and 76 deletions

View File

@@ -41,6 +41,7 @@
#include "timerlist.h"
#include <zapit/zapit.h>
#include <system/helpers.h>
#include <system/mdb-tools.h>
#include <global.h>
#include <neutrino.h>
@@ -1210,7 +1211,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
picname = movie_filename.substr(0, _pos) + ".jpg";
}
else
picname = imdb->getFilename(channel, epgData.eventID);
picname = CMDBTools::getInstance()->getFilename(channel, epgData.eventID);
CFileHelpers fh;
if (!fh.copyFile(imdb->posterfile.c_str(), picname.c_str(), 0644))