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());
|
temp = temp.intersect(post->tags());
|
||||||
|
|
||||||
if (!temp.isEmpty()) {
|
if (!temp.isEmpty()) {
|
||||||
|
|
||||||
// Blacklisted tags are present, do not use this post
|
// Blacklisted tags are present, do not use this post
|
||||||
// qDebug() << "Skipping " << post->fileUrl();
|
|
||||||
// qDebug() << "Blacklisted tags " << overlap;
|
|
||||||
m_currentPosts--;
|
m_currentPosts--;
|
||||||
delete post;
|
delete post;
|
||||||
continue;
|
continue;
|
||||||
|
@ -453,7 +450,7 @@ namespace Danbooru {
|
||||||
// fetch all tags in batch, so this is done one by one.
|
// fetch all tags in batch, so this is done one by one.
|
||||||
|
|
||||||
for (iter=tagList.constBegin(); iter!=tagList.constEnd(); ++iter) {
|
for (iter=tagList.constBegin(); iter!=tagList.constEnd(); ++iter) {
|
||||||
|
|
||||||
QList<QVariant> tags = iter.value().toList();
|
QList<QVariant> tags = iter.value().toList();
|
||||||
|
|
||||||
if (tags.isEmpty()) {
|
if (tags.isEmpty()) {
|
||||||
|
@ -461,8 +458,10 @@ namespace Danbooru {
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_FOREACH(const QVariant& tag, tags) {
|
Q_FOREACH(const QVariant& tag, tags) {
|
||||||
QString interest = tag.toList()[0].toString();
|
// We get the first element in the list, the second is
|
||||||
getTagList(1, interest);
|
// 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
|
} // namespace Danbooru
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
// Qt
|
||||||
|
|
||||||
#include <qjson/parser.h>
|
#include <qjson/parser.h>
|
||||||
#include <QtXml/QXmlStreamReader>
|
#include <QtXml/QXmlStreamReader>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -54,8 +57,6 @@ namespace Danbooru {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "First step URL" << danbooruUrl.url();
|
|
||||||
|
|
||||||
// Now, let's add tags should we have them
|
// Now, let's add tags should we have them
|
||||||
|
|
||||||
if (!tags.isEmpty()) {
|
if (!tags.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue