Some comments
This commit is contained in:
parent
e1a3a94946
commit
601975a6fd
2 changed files with 8 additions and 9 deletions
|
@ -351,10 +351,7 @@ namespace Danbooru {
|
|||
temp = temp.intersect(post->tags());
|
||||
|
||||
if (!temp.isEmpty()) {
|
||||
|
||||
// Blacklisted tags are present, do not use this post
|
||||
// qDebug() << "Skipping " << post->fileUrl();
|
||||
// qDebug() << "Blacklisted tags " << overlap;
|
||||
m_currentPosts--;
|
||||
delete post;
|
||||
continue;
|
||||
|
@ -461,8 +458,10 @@ namespace Danbooru {
|
|||
}
|
||||
|
||||
Q_FOREACH(const QVariant& tag, tags) {
|
||||
QString interest = tag.toList()[0].toString();
|
||||
getTagList(1, interest);
|
||||
// We get the first element in the list, the second is
|
||||
// the ID which is useless (no API methods in Danbooru)
|
||||
QString tagName = tag.toList()[0].toString();
|
||||
getTagList(1, tagName);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -555,4 +554,3 @@ namespace Danbooru {
|
|||
}
|
||||
|
||||
} // namespace Danbooru
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
*/
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
// Qt
|
||||
|
||||
#include <qjson/parser.h>
|
||||
#include <QtXml/QXmlStreamReader>
|
||||
#include <QDebug>
|
||||
|
@ -54,8 +57,6 @@ namespace Danbooru {
|
|||
|
||||
}
|
||||
|
||||
qDebug() << "First step URL" << danbooruUrl.url();
|
||||
|
||||
// Now, let's add tags should we have them
|
||||
|
||||
if (!tags.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue