1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

* Don't whitelist youtube urls. They won't work.

This commit is contained in:
Christian Muehlhaeuser
2013-09-03 23:40:10 +02:00
parent b9671f70a6
commit a546268c7a
2 changed files with 3 additions and 3 deletions

View File

@@ -773,10 +773,10 @@ extractBinaryResolver( const QString& zipFilename, QObject* receiver )
bool
whitelistedHttpResultHint( const QString& url )
whitelistedHttpResultHint( const QUrl& url )
{
// For now, just http/https
return url.startsWith( "http" );
return ( url.scheme().startsWith( "http" ) && !url.host().endsWith( "youtube.com" ) );
}

View File

@@ -179,7 +179,7 @@ namespace TomahawkUtils
// Used by the above, not exported
void copyWithAuthentication( const QString& srcFile, const QDir dest, QObject* receiver );
DLLEXPORT bool whitelistedHttpResultHint( const QString& url );
DLLEXPORT bool whitelistedHttpResultHint( const QUrl& url );
DLLEXPORT int compareVersionStrings( const QString& first, const QString& second );