mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
/pictureviewer.cpp CPictureViewer::GetLogoName: don't add the same dir twice
This commit is contained in:
@@ -527,26 +527,28 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
|
|||||||
id_tmp_path += strChnId + fileType[i];
|
id_tmp_path += strChnId + fileType[i];
|
||||||
v_path.push_back(id_tmp_path);
|
v_path.push_back(id_tmp_path);
|
||||||
|
|
||||||
//create filename with channel name (LOGO_FLASH_DIR_VAR)
|
if(g_settings.logo_hdd_dir != LOGO_FLASH_DIR_VAR){
|
||||||
id_tmp_path = LOGO_FLASH_DIR_VAR "/";
|
//create filename with channel name (LOGO_FLASH_DIR_VAR)
|
||||||
id_tmp_path += ChannelName + fileType[i];
|
id_tmp_path = LOGO_FLASH_DIR_VAR "/";
|
||||||
v_path.push_back(id_tmp_path);
|
id_tmp_path += ChannelName + fileType[i];
|
||||||
|
v_path.push_back(id_tmp_path);
|
||||||
|
|
||||||
//create filename with id (LOGO_FLASH_DIR_VAR)
|
//create filename with id (LOGO_FLASH_DIR_VAR)
|
||||||
id_tmp_path = LOGO_FLASH_DIR_VAR "/";
|
id_tmp_path = LOGO_FLASH_DIR_VAR "/";
|
||||||
id_tmp_path += strChnId + fileType[i];
|
id_tmp_path += strChnId + fileType[i];
|
||||||
v_path.push_back(id_tmp_path);
|
v_path.push_back(id_tmp_path);
|
||||||
|
}
|
||||||
//create filename with channel name (LOGO_FLASH_DIR)
|
if(g_settings.logo_hdd_dir != LOGO_FLASH_DIR){
|
||||||
id_tmp_path = LOGO_FLASH_DIR "/";
|
//create filename with channel name (LOGO_FLASH_DIR)
|
||||||
id_tmp_path += ChannelName + fileType[i];
|
id_tmp_path = LOGO_FLASH_DIR "/";
|
||||||
v_path.push_back(id_tmp_path);
|
id_tmp_path += ChannelName + fileType[i];
|
||||||
|
v_path.push_back(id_tmp_path);
|
||||||
//create filename with id (LOGO_FLASH_DIR)
|
|
||||||
id_tmp_path = LOGO_FLASH_DIR "/";
|
|
||||||
id_tmp_path += strChnId + fileType[i];
|
|
||||||
v_path.push_back(id_tmp_path);
|
|
||||||
|
|
||||||
|
//create filename with id (LOGO_FLASH_DIR)
|
||||||
|
id_tmp_path = LOGO_FLASH_DIR "/";
|
||||||
|
id_tmp_path += strChnId + fileType[i];
|
||||||
|
v_path.push_back(id_tmp_path);
|
||||||
|
}
|
||||||
//check if file is available, name with real name is preferred, return true on success
|
//check if file is available, name with real name is preferred, return true on success
|
||||||
for (size_t j = 0; j < v_path.size(); j++){
|
for (size_t j = 0; j < v_path.size(); j++){
|
||||||
if (access(v_path[j].c_str(), R_OK) != -1){
|
if (access(v_path[j].c_str(), R_OK) != -1){
|
||||||
|
Reference in New Issue
Block a user