@command(('(da|dv)pl\\s+%s' % PL))
def down_plist(dltype, parturl):
 plist(parturl)
 dump(False)
 title = g.pafy_pls[parturl][0].title
 subdir = util.mswinfn(title.replace('/', '-'))
 down_many(dltype, '1-', subdir=subdir)
 msg = g.message
 plist(parturl)
 g.message = msg

@ command ( ( '(da|dv)pl\\s+%s' % PL ) ) def down_plist ( dltype , parturl ) : plist ( parturl ) dump ( False ) title = g . pafy_pls [ parturl ] [ 0 ] . title subdir = util . mswinfn ( title . replace ( '/' , '-' ) ) down_many ( dltype , '1-' , subdir = subdir ) msg = g . message plist ( parturl ) g . message = msg
download youtube playlist .