ytcache: use temporary CFileHelpers instance

Origin commit data
------------------
Commit: d56b7da446
Author: martii <m4rtii@gmx.de>
Date: 2013-06-21 (Fri, 21 Jun 2013)
This commit is contained in:
martii
2013-06-21 10:36:41 +02:00
committed by [CST] Focus
parent bb800bccce
commit 19f7366c93

View File

@@ -162,7 +162,8 @@ bool cYTCache::download(MI_MOVIE_INFO *mi)
File.Name = xml;
cMovieInfo.saveMovieInfo(*mi, &File);
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;
}