mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
temporary fix CFileHelpers.copyFile() syntax
Origin commit data
------------------
Branch: ni/coolstream
Commit: 81d9b2b027
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-05 (Mon, 05 Sep 2016)
Origin message was:
------------------
- temporary fix CFileHelpers.copyFile() syntax
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1270,7 +1270,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
picname = imdb->getFilename(channel, epgData.eventID);
|
picname = imdb->getFilename(channel, epgData.eventID);
|
||||||
|
|
||||||
CFileHelpers fh;
|
CFileHelpers fh;
|
||||||
if (!fh.copyFile(imdb->posterfile.c_str(), picname.c_str()))
|
if (!fh.copyFile(imdb->posterfile.c_str(), picname.c_str(), 644))
|
||||||
perror( "IMDb: error copy file" );
|
perror( "IMDb: error copy file" );
|
||||||
|
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
@@ -1084,7 +1084,7 @@ int CInfoViewerBB::check_ecmInfo()
|
|||||||
{
|
{
|
||||||
int caid = 0;
|
int caid = 0;
|
||||||
CFileHelpers fh;
|
CFileHelpers fh;
|
||||||
if (fh.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp")) {
|
if (fh.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 644)) {
|
||||||
g_InfoViewer->md5_ecmInfo = filehash((char *)"/tmp/ecm.info.tmp");
|
g_InfoViewer->md5_ecmInfo = filehash((char *)"/tmp/ecm.info.tmp");
|
||||||
caid = parse_ecmInfo("/tmp/ecm.info.tmp");
|
caid = parse_ecmInfo("/tmp/ecm.info.tmp");
|
||||||
}
|
}
|
||||||
|
@@ -912,7 +912,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
poster = m_movieSelectionHandler->file.Name.substr(0, pos);
|
poster = m_movieSelectionHandler->file.Name.substr(0, pos);
|
||||||
poster += ".jpg";
|
poster += ".jpg";
|
||||||
CFileHelpers fh;
|
CFileHelpers fh;
|
||||||
if (fh.copyFile(imdb->posterfile.c_str(), poster.c_str()))
|
if (fh.copyFile(imdb->posterfile.c_str(), poster.c_str(), 644))
|
||||||
printf("* poster: %s\n", poster.c_str());
|
printf("* poster: %s\n", poster.c_str());
|
||||||
else
|
else
|
||||||
printf("* poster: copy error\n");
|
printf("* poster: copy error\n");
|
||||||
|
@@ -157,7 +157,7 @@ int CNIMenu::exec(CMenuTarget* parent, const std::string &actionkey)
|
|||||||
|
|
||||||
buffer=NULL;
|
buffer=NULL;
|
||||||
CFileHelpers fhlp;
|
CFileHelpers fhlp;
|
||||||
if (fhlp.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp"))
|
if (fhlp.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 644))
|
||||||
{
|
{
|
||||||
if ((fh = fopen("/tmp/ecm.info.tmp", "r")))
|
if ((fh = fopen("/tmp/ecm.info.tmp", "r")))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user