mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Ignore extras without filename
This commit is contained in:
parent
ae91c28cb0
commit
525985d3fb
@ -2237,6 +2237,15 @@ std::vector<gameFile> Downloader::getExtras(const std::string& gamename, const s
|
||||
// Get name from path
|
||||
name.assign(path.begin()+path.find_last_of("/")+1,path.end());
|
||||
|
||||
if (name.empty())
|
||||
{
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::getExtras)" << std::endl;
|
||||
std::cerr << "Skipped file without a name (game: " << gamename << ", gameid: " << gameid << ", fileid: " << id << ")" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
extras.push_back(
|
||||
gameFile ( false,
|
||||
id,
|
||||
|
Loading…
Reference in New Issue
Block a user