@command('playurl\\s(.*[-_a-zA-Z0-9]{11}[^\\s]*)(\\s-(?:f|a|w))?')
def play_url(url, override):
 override = (override if override else '_')
 g.browse_mode = 'normal'
 yt_url(url, print_title=1)
 if (len(g.model) == 1):
  play(override, '1', '_')
 if g.command_line:
  sys.exit()

@ command ( 'playurl\\s(.*[-_a-zA-Z0-9]{11}[^\\s]*)(\\s-(?:f|a|w))?' ) def play_url ( url , override ) : override = ( override if override else '_' ) g . browse_mode = 'normal' yt_url ( url , print_title = 1 ) if ( len ( g . model ) == 1 ) : play ( override , '1' , '_' ) if g . command_line : sys . exit ( )
open and play a youtube video url .