def on_search(self, query): # XXX: This cross-import of the plugin here is bad, but it # works for now (no proper plugin architecture...) from gpodder.plugins.soundcloud import search_for_user return [ DirectoryEntry(entry['username'], entry['permalink_url']) for entry in search_for_user(query) ]
def on_search(self, query): # XXX: This cross-import of the plugin here is bad, but it # works for now (no proper plugin architecture...) from gpodder.plugins.soundcloud import search_for_user return [DirectoryEntry(entry['username'], entry['permalink_url']) for entry in search_for_user(query)]