platypush/plugins/media/search/plex.py
def search(self, query, **kwargs):
        """
        Performs a Plex search using the configured :class:`platypush.plugins.media.plex.MediaPlexPlugin` instance if
        it is available.
        """

        try:
            plex = get_plugin('media.plex')
        except RuntimeError:
            return []

        self.logger.info('Searching Plex for "{}"'.format(query))
        results = []

        for result in plex.search(title=query).output:
            results.extend(self._flatten_result(result))

        self.logger.info('{} Plex results found for the search query "{}"'.format(len(results), query))
        return results

        Performs a Plex search using the configured :class:`platypush.plugins.media.plex.MediaPlexPlugin` instance if
        it is available.
        
Performs a Plex search using the configured :class:`platypush.plugins.media.plex.MediaPlexPlugin` instance if
it is available.
Performs a Plex search using the configured : class : ` platypush . plugins . media . plex . MediaPlexPlugin ` instance if it is available .
def search(self, query, **kwargs):
        try:
            plex = get_plugin('media.plex')
        except RuntimeError:
            return []
        self.logger.info('Searching Plex for "{}"'.format(query))
        results = []
        for result in plex.search(title=query).output:
            results.extend(self._flatten_result(result))
        self.logger.info('{} Plex results found for the search query "{}"'.format(len(results), query))
        return results
def search ( self , query , ** kwargs ) : try : plex = get_plugin ( 'media.plex' ) except RuntimeError : return [ ] self . logger . info ( 'Searching Plex for "{}"' . format ( query ) ) results = [ ] for result in plex . search ( title = query ) . output : results . extend ( self . _flatten_result ( result ) ) self . logger . info ( '{} Plex results found for the search query "{}"' . format ( len ( results ) , query ) ) return results
Performs a Plex search using the configured :class:`platypush.plugins.media.plex.MediaPlexPlugin` instance if
it is available.
Performs a Plex search using the configured : class : ` platypush . plugins . media . plex . MediaPlexPlugin ` instance if it is available .
"""
        Performs a Plex search using the configured :class:`platypush.plugins.media.plex.MediaPlexPlugin` instance if
        it is available.
        """
self
query