mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
overload access(2)
Conflicts: src/driver/pictureviewer/pictureviewer.cpp src/gui/components/cc_item_picture.cpp src/gui/movieplayer.cpp src/gui/osdlang_setup.cpp src/neutrino.cpp src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp src/nhttpd/yhttpd.cpp src/system/helpers.h src/system/setting_helpers.cpp
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <OpenThreads/ScopedLock>
|
||||
#include "settings.h"
|
||||
#include "helpers.h"
|
||||
#include "set_threadname.h"
|
||||
#include <global.h>
|
||||
|
||||
@@ -615,7 +616,7 @@ bool cYTFeedParser::DownloadThumbnail(cYTVideoInfo &vinfo, CURL *_curl_handle)
|
||||
bool found = false;
|
||||
if (!vinfo.thumbnail.empty()) {
|
||||
std::string fname = thumbnail_dir + "/" + vinfo.id + ".jpg";
|
||||
found = !access(fname.c_str(), F_OK);
|
||||
found = !access(fname, F_OK);
|
||||
if (!found) {
|
||||
for (int *fmtp = itags; *fmtp && !found; fmtp++)
|
||||
found = cYTCache::getInstance()->getNameIfExists(fname, vinfo.id, *fmtp);
|
||||
|
Reference in New Issue
Block a user