platypush/plugins/media/plex/__init__.py
def search(self, section=None, title=None, **kwargs):
        """
        Return all the items matching the search criteria (default: all library items)

        :param section: Section to search (Movies, Shows etc.)
        :type section: str

        :param title: Full or partial title
        :type title: str

        :param kwargs: Search criteria - includes e.g. title, unwatched, director, genre etc.
        :type kwargs: dict
        """

        ret = []
        library = self.plex.library

        if section:
            library = library.section(section)

        if title or kwargs:
            items = library.search(title, **kwargs)
        else:
            items = library.all()

        for item in items:
            ret.append(self._flatten_item(item))

        return ret

        Return all the items matching the search criteria (default: all library items)

        :param section: Section to search (Movies, Shows etc.)
        :type section: str

        :param title: Full or partial title
        :type title: str

        :param kwargs: Search criteria - includes e.g. title, unwatched, director, genre etc.
        :type kwargs: dict
        
Return all the items matching the search criteria (default: all library items)
Return all the items matching the search criteria ( default : all library items )
def search(self, section=None, title=None, **kwargs):
        ret = []
        library = self.plex.library
        if section:
            library = library.section(section)
        if title or kwargs:
            items = library.search(title, **kwargs)
        else:
            items = library.all()
        for item in items:
            ret.append(self._flatten_item(item))
        return ret
def search ( self , section = None , title = None , ** kwargs ) : ret = [ ] library = self . plex . library if section : library = library . section ( section ) if title or kwargs : items = library . search ( title , ** kwargs ) else : items = library . all ( ) for item in items : ret . append ( self . _flatten_item ( item ) ) return ret
Return all the items matching the search criteria (default: all library items)
Return all the items matching the search criteria ( default : all library items )
"""
        Return all the items matching the search criteria (default: all library items)

        :param section: Section to search (Movies, Shows etc.)
        :type section: str

        :param title: Full or partial title
        :type title: str

        :param kwargs: Search criteria - includes e.g. title, unwatched, director, genre etc.
        :type kwargs: dict
        """
self
section
Section to search (Movies, Shows etc.)
Section to search ( Movies Shows etc . )
title
Full or partial title
Full or partial title
kwargs
Search criteria - includes e.g. title, unwatched, director, genre etc.
Search criteria - includes e . g . title unwatched director genre etc .