introduce mdb-tools (taken from mdb-imdb)

Origin commit data
------------------
Branch: ni/coolstream
Commit: ab3f0e198c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-03 (Mon, 03 May 2021)

Origin message was:
------------------
- introduce mdb-tools (taken from mdb-imdb)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-05-03 23:16:52 +02:00
parent a94917b873
commit 17e81f8afb
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>
@@ -1220,7 +1221,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))