def related_search(vitem):
 query = generate_search_qs(vitem.ytid, match='related')
 if query.get('videoCategoryId'):
  del query['videoCategoryId']
 t = vitem.title
 ttitle = ((t[:48].strip() + '..') if (len(t) > 49) else t)
 msg = ('Videos related to %s%s%s' % (c.y, ttitle, c.w))
 failmsg = ('Related to %s%s%s not found' % (c.y, vitem.ytid, c.w))
 _search(ttitle, query, msg, failmsg)

def related_search ( vitem ) : query = generate_search_qs ( vitem . ytid , match = 'related' ) if query . get ( 'videoCategoryId' ) : del query [ 'videoCategoryId' ] t = vitem . title ttitle = ( ( t [ : 48 ] . strip ( ) + '..' ) if ( len ( t ) > 49 ) else t ) msg = ( 'Videos related to %s%s%s' % ( c . y , ttitle , c . w ) ) failmsg = ( 'Related to %s%s%s not found' % ( c . y , vitem . ytid , c . w ) ) _search ( ttitle , query , msg , failmsg )
fetch uploads by a youtube user .