ytcache: use temporary CFileHelpers instance

Origin commit data
------------------
Branch: ni/coolstream
Commit: d56b7da446
Author: martii <m4rtii@gmx.de>
Date: 2013-06-21 (Fri, 21 Jun 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-06-21 10:36:41 +02:00
committed by [CST] Focus
parent 96ed06eb2c
commit 68680d81b1

View File

@@ -162,7 +162,8 @@ bool cYTCache::download(MI_MOVIE_INFO *mi)
File.Name = xml; File.Name = xml;
cMovieInfo.saveMovieInfo(*mi, &File); cMovieInfo.saveMovieInfo(*mi, &File);
std::string thumbnail_dst = getName(mi, "jpg"); std::string thumbnail_dst = getName(mi, "jpg");
CFileHelpers::getInstance()->copyFile(mi->tfile.c_str(), thumbnail_dst.c_str(), 0644); CFileHelpers fh;
fh.copyFile(mi->tfile.c_str(), thumbnail_dst.c_str(), 0644);
return true; return true;
} }