1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 20:00:13 +02:00

Don't assert for linkParser plugins, placeholder for real implementation

This commit is contained in:
Dominik Schmidt
2016-02-01 15:18:06 +01:00
parent 759bfbe63b
commit ba0cc1a00c

View File

@@ -201,6 +201,10 @@ ScriptAccount::unregisterScriptPlugin( const QString& type, const QString& objec
{ {
m_infoPluginFactory->unregisterPlugin( object ); m_infoPluginFactory->unregisterPlugin( object );
} }
else if( type == "linkParser" )
{
// TODO
}
else else
{ {
tLog() << "This plugin type is not handled by Tomahawk or simply cannot be removed yet"; tLog() << "This plugin type is not handled by Tomahawk or simply cannot be removed yet";
@@ -231,6 +235,10 @@ ScriptAccount::scriptPluginFactory( const QString& type, const scriptobject_ptr&
ScriptLinkGeneratorPlugin* lgp = new ScriptLinkGeneratorPlugin( object ); ScriptLinkGeneratorPlugin* lgp = new ScriptLinkGeneratorPlugin( object );
Utils::LinkGenerator::instance()->addPlugin( lgp ); Utils::LinkGenerator::instance()->addPlugin( lgp );
} }
else if( type == "linkParser" )
{
tLog() << "Plugin registered linkParser, which is not implemented yet. UrlLookup won't work";
}
else if ( type == "infoPlugin" ) else if ( type == "infoPlugin" )
{ {
m_infoPluginFactory->registerPlugin( object, this ); m_infoPluginFactory->registerPlugin( object, this );