예제 #1
0
    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)
        ]
예제 #2
0
파일: directory.py 프로젝트: Vegasq/gpodder
    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)]