|
a/HelperStructs/MetaData.h |
|
b/HelperStructs/MetaData.h |
|
... |
|
... |
288 |
else
|
288 |
else
|
289 |
at(i).pl_playing = false;
|
289 |
at(i).pl_playing = false;
|
290 |
}
|
290 |
}
|
291 |
}
|
291 |
}
|
292 |
|
292 |
|
293 |
bool contains(const MetaData& md, bool cs=false) {
|
293 |
bool contains(const MetaData& md, bool cs=false, MetaData **found = 0) {
|
294 |
if(cs) {
|
294 |
if(cs) {
|
295 |
QString filepath = md.filepath.trimmed();
|
295 |
QString filepath = md.filepath.trimmed();
|
296 |
|
296 |
|
297 |
for(uint i = 0; i < size(); i++){
|
297 |
for(uint i = 0; i < size(); i++){
|
298 |
QString filepath2 = at(i).filepath.trimmed();
|
298 |
QString filepath2 = at(i).filepath.trimmed();
|
299 |
if(!filepath.compare(filepath2))
|
299 |
if(!filepath.compare(filepath2)) {
|
|
|
300 |
if (found)
|
|
|
301 |
*found = &(at(i));
|
300 |
return true;
|
302 |
return true;
|
|
|
303 |
}
|
301 |
}
|
304 |
}
|
302 |
} else {
|
305 |
} else {
|
303 |
QString filepath = md.filepath.toLower().trimmed();
|
306 |
QString filepath = md.filepath.toLower().trimmed();
|
304 |
|
307 |
|
305 |
for (uint i = 0; i < size(); i++){
|
308 |
for (uint i = 0; i < size(); i++){
|
306 |
QString filepath2 = at(i).filepath.toLower().trimmed();
|
309 |
QString filepath2 = at(i).filepath.toLower().trimmed();
|
307 |
if(!filepath.compare(filepath2))
|
310 |
if(!filepath.compare(filepath2)) {
|
|
|
311 |
if (found)
|
|
|
312 |
*found = &(at(i));
|
308 |
return true;
|
313 |
return true;
|
|
|
314 |
}
|
309 |
}
|
315 |
}
|
310 |
}
|
316 |
}
|
311 |
return false;
|
317 |
return false;
|
312 |
}
|
318 |
}
|
313 |
|
319 |
|