mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
imdb: fix deletion of posterfile
Origin commit data
------------------
Commit: cd45c8dd69
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-02 (Tue, 02 Aug 2016)
Origin message was:
------------------
- imdb: fix deletion of posterfile
This commit is contained in:
@@ -316,9 +316,9 @@ int CIMDB::getIMDb(const std::string& epgTitle)
|
|||||||
if(httpTool.downloadFile(m["Poster"], posterfile.c_str()))
|
if(httpTool.downloadFile(m["Poster"], posterfile.c_str()))
|
||||||
return 2;
|
return 2;
|
||||||
else {
|
else {
|
||||||
return 1;
|
|
||||||
if (access(posterfile.c_str(), F_OK) == 0)
|
if (access(posterfile.c_str(), F_OK) == 0)
|
||||||
unlink(posterfile.c_str());
|
unlink(posterfile.c_str());
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret=2;
|
ret=2;
|
||||||
|
Reference in New Issue
Block a user