def run(self, print_part=None, friend_id=None, group_id=None, *args, **kwargs): self.process_id_argument(kwargs) if friend_id: kwargs['owner_id'] = friend_id elif group_id: kwargs['owner_id'] = -group_id for audio in self.list_items('audio.get', **kwargs): tools.print_audio(audio, print_part)
def run(self, print_part=None, *args, **kwargs): kwargs['search_own'] = int(kwargs.get('search_own', False)) kwargs['count'] = kwargs.pop('limit', 100) kwargs['q'] = kwargs.pop('query') for audio in self.client.call('audio.search', **kwargs)['items']: tools.print_audio(audio, print_part)