mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Add some twitter debug
This commit is contained in:
@@ -291,6 +291,7 @@ TwitterPlugin::parseGotTomahawk( const QRegExp ®ex, const QString &screenName
|
|||||||
QString node;
|
QString node;
|
||||||
for ( int i = 0; i < regex.captureCount(); ++i )
|
for ( int i = 0; i < regex.captureCount(); ++i )
|
||||||
{
|
{
|
||||||
|
qDebug() << "Parsing regex captures, current cap = " << regex.cap( i );
|
||||||
if ( regex.cap( i ) == QString( "Got Tomahawk?" ) )
|
if ( regex.cap( i ) == QString( "Got Tomahawk?" ) )
|
||||||
{
|
{
|
||||||
QString nodeCap = regex.cap( i + 1 );
|
QString nodeCap = regex.cap( i + 1 );
|
||||||
@@ -350,6 +351,7 @@ TwitterPlugin::friendsTimelineStatuses( const QList< QTweetStatus > &statuses )
|
|||||||
if ( status.id() > m_cachedFriendsSinceId )
|
if ( status.id() > m_cachedFriendsSinceId )
|
||||||
m_cachedFriendsSinceId = status.id();
|
m_cachedFriendsSinceId = status.id();
|
||||||
|
|
||||||
|
qDebug() << "TwitterPlugin checking mention from " << status.user().screenName() << " with content " << status.text();
|
||||||
parseGotTomahawk( regex, status.user().screenName(), status.text() );
|
parseGotTomahawk( regex, status.user().screenName(), status.text() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,6 +387,7 @@ TwitterPlugin::mentionsStatuses( const QList< QTweetStatus > &statuses )
|
|||||||
if ( status.id() > m_cachedMentionsSinceId )
|
if ( status.id() > m_cachedMentionsSinceId )
|
||||||
m_cachedMentionsSinceId = status.id();
|
m_cachedMentionsSinceId = status.id();
|
||||||
|
|
||||||
|
qDebug() << "TwitterPlugin checking mention from " << status.user().screenName() << " with content " << status.text();
|
||||||
parseGotTomahawk( regex, status.user().screenName(), status.text() );
|
parseGotTomahawk( regex, status.user().screenName(), status.text() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user