Clean up debug statements
This commit is contained in:
parent
cc7c6d1f1a
commit
7ccd845eba
1 changed files with 10 additions and 7 deletions
|
@ -84,8 +84,6 @@ void DanbooruService::getPostList()
|
|||
|
||||
// We can't fetch more than 100 items, API limitation
|
||||
|
||||
qDebug() << "Fetching with URL" << m_url;
|
||||
|
||||
QMap<QString, QString> parameters;
|
||||
|
||||
parameters.insert("limit", QString::number(m_maxPosts));
|
||||
|
@ -94,7 +92,7 @@ void DanbooruService::getPostList()
|
|||
QUrl danbooruUrl = requestUrl(m_url, POST_URL, m_username,
|
||||
m_password, parameters, m_tags);
|
||||
|
||||
qDebug() << "Final constructed post URL" << danbooruUrl;
|
||||
// qDebug() << "Final constructed post URL" << danbooruUrl;
|
||||
|
||||
KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
|
||||
KIO::HideProgressInfo);
|
||||
|
@ -119,7 +117,7 @@ void DanbooruService::getTagList(int limit, QString name)
|
|||
|
||||
QUrl danbooruUrl = requestUrl(m_url, TAG_URL, m_username, m_password,
|
||||
parameters);
|
||||
//qDebug() << "Final constructed tag URL" << danbooruUrl.url();
|
||||
// qDebug() << "Final constructed tag URL" << danbooruUrl.url();
|
||||
|
||||
KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
|
||||
KIO::HideProgressInfo);
|
||||
|
@ -148,6 +146,10 @@ void DanbooruService::getTagList(int limit, QString name)
|
|||
for (auto element : tagList) {
|
||||
QVariantMap map = element.toMap();
|
||||
DanbooruTag *tag = new DanbooruTag(map);
|
||||
|
||||
if(!tag) {
|
||||
continue;
|
||||
}
|
||||
Q_EMIT(tagDownloaded(tag));
|
||||
}
|
||||
|
||||
|
@ -169,7 +171,7 @@ void DanbooruService::getPool(int poolId, int page)
|
|||
QUrl danbooruUrl = requestUrl(m_url, POOL_DATA_URL, m_username,
|
||||
m_password, parameters);
|
||||
|
||||
qDebug() << "Final constructed pool URL" << danbooruUrl.url();
|
||||
// qDebug() << "Final constructed pool URL" << danbooruUrl.url();
|
||||
|
||||
KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
|
||||
KIO::HideProgressInfo);
|
||||
|
@ -198,7 +200,7 @@ void DanbooruService::getPoolList()
|
|||
m_password, map);
|
||||
}
|
||||
|
||||
qDebug() << "Final constructed pool list URL" << danbooruUrl.url();
|
||||
// qDebug() << "Final constructed pool list URL" << danbooruUrl.url();
|
||||
|
||||
KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
|
||||
KIO::HideProgressInfo);
|
||||
|
@ -269,7 +271,8 @@ void DanbooruService::getRelatedTags(const QStringList &tags,
|
|||
QUrl danbooruUrl = requestUrl(m_url, RELATED_TAG_URL, m_username,
|
||||
m_password, parameters, tags);
|
||||
|
||||
//qDebug() << "Final constructed related tag URL" << danbooruUrl.url();
|
||||
// qDebug() << "Final constructed related tag URL" << danbooruUrl;
|
||||
|
||||
|
||||
StoredTransferJob *job = KIO::storedGet(
|
||||
danbooruUrl, KIO::NoReload,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue