mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
ytcache: use temporary CFileHelpers instance
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user