@command('user\\s+(.+)')
def usersearch(q_user, identify='forUsername'):
 (user, _, term) = (x.strip() for x in q_user.partition('/'))
 if (identify == 'forUsername'):
  ret = channelfromname(user)
  if (not ret):
   return
  (user, channel_id) = ret
 else:
  channel_id = user
 usersearch_id(user, channel_id, term)

@ command ( 'user\\s+(.+)' ) def usersearch ( q_user , identify = 'forUsername' ) : ( user , _ , term ) = ( x . strip ( ) for x in q_user . partition ( '/' ) ) if ( identify == 'forUsername' ) : ret = channelfromname ( user ) if ( not ret ) : return ( user , channel_id ) = ret else : channel_id = user usersearch_id ( user , channel_id , term )
fetch uploads by a youtube user .