mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Style fix
This commit is contained in:
@@ -129,7 +129,7 @@ DropJob::acceptsMimeData( const QMimeData* data, DropJob::DropTypes acceptedType
|
|||||||
if ( url.contains( "spotify" ) && url.contains( "playlist" ) && s_canParseSpotifyPlaylists )
|
if ( url.contains( "spotify" ) && url.contains( "playlist" ) && s_canParseSpotifyPlaylists )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if( url.contains( "soundcloud" ) && url.contains("sets") )
|
if( url.contains( "soundcloud" ) && url.contains( "sets" ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if ( url.contains( "grooveshark.com" ) && url.contains( "playlist" ) )
|
if ( url.contains( "grooveshark.com" ) && url.contains( "playlist" ) )
|
||||||
|
@@ -76,7 +76,7 @@ SoundcloudParser::lookupUrl( const QString& link )
|
|||||||
QUrl scLink( QString( "http://api.soundcloud.com/resolve.json?client_id=TiNg2DRYhBnp01DA3zNag&url=" ) + link );
|
QUrl scLink( QString( "http://api.soundcloud.com/resolve.json?client_id=TiNg2DRYhBnp01DA3zNag&url=" ) + link );
|
||||||
qDebug() << scLink.toString();
|
qDebug() << scLink.toString();
|
||||||
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( scLink ) );
|
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( scLink ) );
|
||||||
connect( reply, SIGNAL( finished() ), this, SLOT( SoundcloudBrowseFinished() ) );
|
connect( reply, SIGNAL( finished() ), this, SLOT( soundcloudBrowseFinished() ) );
|
||||||
|
|
||||||
m_browseJob = new DropJobNotifier( pixmap(), "Soundcloud", DropJob::All, reply );
|
m_browseJob = new DropJobNotifier( pixmap(), "Soundcloud", DropJob::All, reply );
|
||||||
JobStatusView::instance()->model()->addJob( m_browseJob );
|
JobStatusView::instance()->model()->addJob( m_browseJob );
|
||||||
@@ -218,7 +218,7 @@ SoundcloudParser::SoundcloudBrowseFinished()
|
|||||||
if( m_type != DropJob::All )
|
if( m_type != DropJob::All )
|
||||||
{
|
{
|
||||||
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( QUrl(url) ) );
|
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( QUrl(url) ) );
|
||||||
connect( reply, SIGNAL( finished() ), this, SLOT( SoundcloudLookupFinished() ) );
|
connect( reply, SIGNAL( finished() ), this, SLOT( soundcloudLookupFinished() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -65,8 +65,8 @@ signals:
|
|||||||
void playlist( const Tomahawk::query_ptr& playlist );
|
void playlist( const Tomahawk::query_ptr& playlist );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void SoundcloudBrowseFinished();
|
void soundcloudBrowseFinished();
|
||||||
void SoundcloudLookupFinished();
|
void soundcloudLookupFinished();
|
||||||
void playlistCreated();
|
void playlistCreated();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user