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:
@@ -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" ) );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user